package router import ( v1 "aps_crm/api/v1" "github.com/gin-gonic/gin" ) type TimelyRateRouter struct{} func (s *TimelyRateRouter) InitTimelyRateRouter(router *gin.RouterGroup) { timelyRateRouter := router.Group("timelyRate") timelyRateApi := v1.ApiGroup.TimelyRateApi { timelyRateRouter.POST("add", timelyRateApi.Add) // 添加销售阶段 timelyRateRouter.DELETE("delete/:id", timelyRateApi.Delete) // 删除销售阶段 timelyRateRouter.PUT("update", timelyRateApi.Update) // 更新销售阶段 timelyRateRouter.GET("list", timelyRateApi.List) // 获取销售阶段列表 } }