feat: status constant define

This commit is contained in:
engigu
2026-02-10 17:07:11 +08:00
parent 04de467a67
commit cca069dd98
16 changed files with 152 additions and 109 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func (tc *TaskController) CreateTask(c *gin.Context) {
}
// 普通任务需要命令
if req.Type != "repo" && req.Command == "" {
if req.Type != constant.TaskTypeRepo && req.Command == "" {
utils.BadRequest(c, "命令不能为空")
return
}