You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
426B

  1. from enum import Enum, unique
  2. @unique
  3. class UploadStatusType(Enum):
  4. WAITING = (5, "待上传")
  5. RUNNING = (10, "上传中")
  6. SUCCESS = (15, "完成")
  7. FAILED = (20, "失败")
  8. CANCEL = (25, "取消")
  9. @unique
  10. class UploadTaskStatusType(Enum):
  11. WAITING = (5, "待执行")
  12. RUNNING = (10, "执行中")
  13. SUCCESS = (15, "完成")
  14. TIMEOUT = (20, "超时")
  15. FAILED = (25, "失败")