feat(工作日): 新增工作小时计算工具 + 节假日表与管理接口

- time_utils 新增 to_beijing(统一naive按UTC转北京时间) + working_duration_hours(排除周末/节假日)
- Holiday 模型 + alembic 迁移建 holidays 表
- GET/POST/DELETE /holidays 节假日管理接口,可随时配置放假日期
This commit is contained in:
2026-08-28 15:08:05 +08:00
parent 1a5716a1ab
commit ad4b55dece
6 changed files with 164 additions and 2 deletions

View File

@ -7,6 +7,7 @@ from app.models.task_log import TaskLog
from app.models.notification import Notification
from app.models.app_version import AppVersion
from app.models.message import ProductMessage
from app.models.holiday import Holiday
__all__ = [
"Base",
"ProductionOrder",
@ -17,4 +18,5 @@ __all__ = [
"Notification",
"AppVersion",
"ProductMessage",
"Holiday",
]