fix
wangpengfei
2023-08-18 51a555e6db6dcf71a7c16faa3bf61241a32d2459
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)            // 获取严重程度列表
    }
}