wangpengfei
2023-08-07 9c2489c0c360c8dda36d3cbe1dba79222096b2dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)            // 获取企业规模列表
    }
}