fix
wangpengfei
2023-08-14 899f9d83c3f580ac9d641cd76551d3e0afcf0adf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package router
 
import (
    v1 "aps_crm/api/v1"
    "github.com/gin-gonic/gin"
)
 
func InitPaymentTypeRouter(router *gin.RouterGroup) {
    PaymentTypeRouter := router.Group("paymentType")
    PaymentTypeApi := v1.PaymentTypeApi{}
    {
        PaymentTypeRouter.POST("add", PaymentTypeApi.Add)             // 添加支付方式
        PaymentTypeRouter.DELETE("delete/:id", PaymentTypeApi.Delete) // 删除支付方式
        PaymentTypeRouter.PUT("update", PaymentTypeApi.Update)        // 更新支付方式
        PaymentTypeRouter.GET("list", PaymentTypeApi.List)            // 获取支付方式列表
    }
}