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) // 获取行业列表
|
}
|
}
|