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$列表 } }