refactor(core): 任务与模型协议治理 - 拆分服务职责并禁止已发起任务取消

This commit is contained in:
ddCat
2026-08-22 09:52:09 +08:00
parent 7418ddfa9c
commit 633560a5d8
91 changed files with 6380 additions and 4247 deletions

View File

@@ -31,7 +31,7 @@ func RegisterProjectRoutes(r *gin.RouterGroup, svc *service.Service) {
}
projects, err := svc.ListProjects(user.ID)
if err != nil {
fail(c, http.StatusInternalServerError, err)
failService(c, err)
return
}
ok(c, gin.H{"projects": projects})
@@ -67,7 +67,7 @@ func RegisterProjectRoutes(r *gin.RouterGroup, svc *service.Service) {
fail(c, http.StatusNotFound, err)
return
}
fail(c, http.StatusInternalServerError, err)
failService(c, err)
return
}
ok(c, detail)