fix
wangpengfei
2023-09-01 0b405c63b26629e0c9e4040b78020da0f11e8eb0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package router
 
import (
    v1 "aps_crm/api/v1"
    "github.com/gin-gonic/gin"
)
 
func InitSeverityRouter(router *gin.RouterGroup) {
    SeverityRouter := router.Group("severity")
    SeverityApi := v1.SeverityApi{}
    {
        SeverityRouter.POST("add", SeverityApi.Add)             // 添加严重程度
        SeverityRouter.DELETE("delete/:id", SeverityApi.Delete) // 删除严重程度
        SeverityRouter.PUT("update", SeverityApi.Update)        // 更新严重程度
        SeverityRouter.GET("list", SeverityApi.List)            // 获取严重程度列表
    }
}