zhangqian
2024-03-15 2eb20330dfbda6136f1b8cc804cc21438ae4dc13
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$列表
    }
}