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) // 获取支付方式列表 } }