package router import ( v1 "aps_crm/api/v1" "github.com/gin-gonic/gin" ) func InitRefundTypeRouter(router *gin.RouterGroup) { RefundTypeRouter := router.Group("refundType") RefundTypeApi := v1.RefundTypeApi{} { RefundTypeRouter.POST("add", RefundTypeApi.Add) // 添加退款方式 RefundTypeRouter.DELETE("delete/:id", RefundTypeApi.Delete) // 删除退款方式 RefundTypeRouter.PUT("update", RefundTypeApi.Update) // 更新退款方式 RefundTypeRouter.GET("list", RefundTypeApi.List) // 获取退款方式列表 } }