fix
wangpengfei
2023-08-18 51a555e6db6dcf71a7c16faa3bf61241a32d2459
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
package router
 
import (
    v1 "aps_crm/api/v1"
    "github.com/gin-gonic/gin"
)
 
type OrderTypeRouter struct{}
 
func (s *OrderTypeRouter) InitOrderTypeRouter(router *gin.RouterGroup) {
    orderTypeRouter := router.Group("orderType")
    orderTypeApi := v1.ApiGroup.OrderTypeApi
    {
        orderTypeRouter.POST("add", orderTypeApi.Add)             // 添加$CName$
        orderTypeRouter.DELETE("delete/:id", orderTypeApi.Delete) // 删除$CName$
        orderTypeRouter.PUT("update", orderTypeApi.Update)        // 更新$CName$
        orderTypeRouter.GET("list", orderTypeApi.List)            // 获取$CName$列表
    }
}