Version: 0.3.6.dev.260223
feat: 🚀 新增智能编排日程接口与算法模块 * 新增智能编排日程接口,实现自动生成周维度课程安排 * 抽离核心算法至 `Logic` 包,统一存放调度与排课相关算法逻辑,优化项目结构分层 * 大多数用例测试通过,当前存在少量边界用例下“排课时间是否充足”的误判问题 * 返回的周视图数据在极端场景下存在数量偏差,待进一步完善边界控制 fix: 🐛 修复批量导入课程接口 500 错误 * 修复批量导入课程接口中未在 `event` 结构体填写时间字段的问题 * 解决因时间字段为空导致的服务端 500 错误,保证数据完整性 refactor: ♻️ 新增入参校验逻辑保障调度稳定性 * 在添加任务类时新增入参校验逻辑 * 避免非法数据进入调度流程,确保自动编排日程接口执行稳定 docs: 📚 更新 README 智能编排算法说明 * 补充智能编排日程算法的设计思路与实现说明 undo: ⚠️ 追加导入课程后缓存未自动失效 * 追加导入课程后未自动删除对应周安排缓存,存在数据不一致风险 * 当前未能稳定复现,计划后续定位缓存失效时序与触发条件问题
This commit is contained in:
@@ -284,4 +284,24 @@ var ( //请求相关的响应
|
||||
Status: "40043",
|
||||
Info: "invalid section range, start_section should be less than or equal to end_section",
|
||||
}
|
||||
|
||||
MissingParamForAutoScheduling = Response{ //自动排课缺少参数
|
||||
Status: "40044",
|
||||
Info: "missing param for auto scheduling",
|
||||
}
|
||||
|
||||
InvalidDateRange = Response{ //无效的日期范围
|
||||
Status: "40045",
|
||||
Info: "invalid date range, start_date should be before or equal to end_date",
|
||||
}
|
||||
|
||||
TaskClassModeNotAuto = Response{ //任务类模式不是自动
|
||||
Status: "40046",
|
||||
Info: "task class mode is not auto",
|
||||
}
|
||||
|
||||
TimeNotEnoughForAutoScheduling = Response{ //自动排课时间不足
|
||||
Status: "40047",
|
||||
Info: "time not enough for auto scheduling",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user