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) }