feat: 迁移预警处理审核与备注附件流程

This commit is contained in:
Yvan
2026-11-03 20:40:16 +08:00
parent 7203c34409
commit 838c2c496f
36 changed files with 2312 additions and 13 deletions
+19
View File
@@ -0,0 +1,19 @@
package router
import (
"github.com/gin-gonic/gin"
"kra/internal/biz/business"
"kra/internal/server/handler"
)
func RegisterAlertRecord(private *gin.RouterGroup, h *handler.AlertRecord) {
g := private.Group("/sw/alertRecord")
g.GET("/list", h.List)
g.GET("/detail/:id", h.Detail)
g.POST("/startProcess", h.Process(business.AlertStart))
g.POST("/submitAudit", h.Process(business.AlertSubmit))
g.POST("/approve", h.Process(business.AlertApprove))
g.POST("/reject", h.Process(business.AlertReject))
g.POST("/reProcess", h.Process(business.AlertReprocess))
g.POST("/addNote", h.AddNote)
}
+1
View File
@@ -20,6 +20,7 @@ func (r *Routes) RegisterRoutes(public, private *gin.RouterGroup, engine *gin.En
return
}
registrations := []func(){
func() { RegisterAlertRecord(private, r.handlers.AlertRecord) },
func() { RegisterAlertRule(private, r.handlers.AlertRule) },
func() { private.GET("/sw/business/:userId/promotes", r.handlers.BusinessPromote.List) },
func() { RegisterBusiness(private, r.handlers.Business) },