package router import ( v1 "aps_crm/api/v1" "github.com/gin-gonic/gin" ) type CustomerServiceSheetRouter struct{} func (c *CustomerServiceSheetRouter) InitCustomerServiceSheetRouter(router *gin.RouterGroup) { customerServiceSheetRouter := router.Group("customerServiceSheet") customerServiceSheetApi := v1.ApiGroup.CustomerServiceSheetApi { customerServiceSheetRouter.POST("add", customerServiceSheetApi.Add) // 添加客服单 customerServiceSheetRouter.DELETE("delete/:id", customerServiceSheetApi.Delete) // 删除客服单 customerServiceSheetRouter.PUT("update", customerServiceSheetApi.Update) // 更新客服单 customerServiceSheetRouter.GET("list", customerServiceSheetApi.List) // 获取客服单列表 } }