zhangqian
2024-03-20 4f526b034a6e13a521ad71dcbdbea97043d6ea19
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)            // 获取生成计划列表
    }
}