zhangqian
2024-03-20 4f526b034a6e13a521ad71dcbdbea97043d6ea19
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 IndustryRouter struct{}
 
func (s *IndustryRouter) InitIndustryRouter(router *gin.RouterGroup) {
    industryRouter := router.Group("industry")
    industryApi := v1.ApiGroup.IndustryApi
    {
        industryRouter.POST("add", industryApi.Add)             // 添加行业
        industryRouter.DELETE("delete/:id", industryApi.Delete) // 删除行业
        industryRouter.PUT("update", industryApi.Update)        // 更新行业
        industryRouter.GET("list", industryApi.List)            // 获取行业列表
    }
}