zhangqian
2023-08-15 2c53a4e2c7ededc1f07324d797430e8d4a0607a1
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 PlanRouter struct{}
 
func (p *PlanRouter) InitPlanRouter(router *gin.RouterGroup) {
    planRouter := router.Group("plan")
    planApi := v1.ApiGroup.PlanApi
    {
        planRouter.POST("add", planApi.Add)             // 添加计划
        planRouter.DELETE("delete/:id", planApi.Delete) // 删除计划
        planRouter.PUT("update", planApi.Update)        // 更新计划
        planRouter.POST("list", planApi.List)            // 获取生成计划列表
    }
}