mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
* Update the ruff rules and format the code * Update the per-file-ignores * Update the ci * Update rules * Fix codes * Fix pagination * Update rules
19 lines
322 B
Python
19 lines
322 B
Python
from backend.common.enums import IntEnum, StrEnum
|
|
|
|
|
|
class TaskSchedulerType(IntEnum):
|
|
"""任务调度类型"""
|
|
|
|
INTERVAL = 0
|
|
CRONTAB = 1
|
|
|
|
|
|
class PeriodType(StrEnum):
|
|
"""周期类型"""
|
|
|
|
DAYS = 'days'
|
|
HOURS = 'hours'
|
|
MINUTES = 'minutes'
|
|
SECONDS = 'seconds'
|
|
MICROSECONDS = 'microseconds'
|