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
package router
 
import (
    v1 "aps_crm/api/v1"
    "github.com/gin-gonic/gin"
)
 
type RegularCustomersRouter struct{}
 
func (r *RegularCustomersRouter) InitRegularCustomersRouter(router *gin.RouterGroup) {
    regularCustomersRouter := router.Group("regularCustomers")
    regularCustomersApi := v1.ApiGroup.RegularCustomersApi
    {
        regularCustomersRouter.POST("add", regularCustomersApi.Add)             // 添加常客
        regularCustomersRouter.DELETE("delete/:id", regularCustomersApi.Delete) // 删除常客
        regularCustomersRouter.PUT("update", regularCustomersApi.Update)        // 更新常客
        regularCustomersRouter.GET("list", regularCustomersApi.List)            // 获取常客列表
    }
}