package router
|
|
import (
|
v1 "aps_crm/api/v1"
|
"github.com/gin-gonic/gin"
|
)
|
|
type EnterpriseScaleRouter struct{}
|
|
func (s *EnterpriseScaleRouter) InitEnterpriseScaleRouter(router *gin.RouterGroup) {
|
enterpriseScaleRouter := router.Group("enterpriseScale")
|
enterpriseScaleApi := v1.ApiGroup.EnterpriseScaleApi
|
{
|
enterpriseScaleRouter.POST("add", enterpriseScaleApi.Add) // 添加企业规模
|
enterpriseScaleRouter.DELETE("delete/:id", enterpriseScaleApi.Delete) // 删除企业规模
|
enterpriseScaleRouter.PUT("update", enterpriseScaleApi.Update) // 更新企业规模
|
enterpriseScaleRouter.GET("list", enterpriseScaleApi.List) // 获取企业规模列表
|
}
|
}
|