fix
wangpengfei
2023-08-28 c5a0eb549cba2cd358a2d0496c44f3a289f15d9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
package router
 
import (
    v1 "aps_crm/api/v1"
    "github.com/gin-gonic/gin"
)
 
type AccountIdRouter struct{}
 
func (s *AccountIdRouter) InitAccountIdRouter(router *gin.RouterGroup) {
    accountIdRouter := router.Group("accountId")
    accountIdApi := v1.ApiGroup.AccountIdApi
    {
        accountIdRouter.POST("add", accountIdApi.Add)             // 添加$CName$
        accountIdRouter.DELETE("delete/:id", accountIdApi.Delete) // 删除$CName$
        accountIdRouter.PUT("update", accountIdApi.Update)        // 更新$CName$
        accountIdRouter.GET("list", accountIdApi.List)            // 获取$CName$列表
    }
}