fix
wangpengfei
2023-08-18 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f
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$列表
    }
}