优化交易创建流程,客户管理新增折扣与来源字段及功能
This commit is contained in:
@@ -176,9 +176,20 @@ func adminRouter(api fiber.Router) {
|
||||
product.Post("/sku/update", handlers.UpdateProductSku)
|
||||
product.Post("/sku/update/discount/batch", handlers.BatchUpdateProductSkuDiscount)
|
||||
product.Post("/sku/remove", handlers.DeleteProductSku)
|
||||
product.Post("/discount/page", handlers.PageProductDiscountByAdmin)
|
||||
product.Post("/discount/all", handlers.AllProductDiscountsByAdmin)
|
||||
product.Post("/discount/create", handlers.CreateProductDiscount)
|
||||
product.Post("/discount/update", handlers.UpdateProductDiscount)
|
||||
product.Post("/discount/remove", handlers.DeleteProductDiscount)
|
||||
|
||||
// discount 折扣
|
||||
var discount = api.Group("/discount")
|
||||
discount.Post("/page", handlers.PageProductDiscountByAdmin)
|
||||
discount.Post("/all", handlers.AllProductDiscountsByAdmin)
|
||||
discount.Post("/create", handlers.CreateProductDiscount)
|
||||
discount.Post("/update", handlers.UpdateProductDiscount)
|
||||
discount.Post("/remove", handlers.DeleteProductDiscount)
|
||||
|
||||
// coupon 优惠券
|
||||
var coupon = api.Group("/coupon")
|
||||
coupon.Post("/page", handlers.PageCouponByAdmin)
|
||||
coupon.Post("/all", handlers.AllCouponsByAdmin)
|
||||
coupon.Post("/create", handlers.CreateCoupon)
|
||||
coupon.Post("/update", handlers.UpdateCoupon)
|
||||
coupon.Post("/remove", handlers.DeleteCoupon)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user