You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.7 KiB
38 lines
1.7 KiB
6 months ago
|
package customer
|
||
|
|
||
|
import (
|
||
|
"shop-api/api/customer"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func InitInfluencerOrderRouter(Router *gin.RouterGroup) {
|
||
|
InRouter := Router.Group("order")
|
||
|
{
|
||
|
InRouter.GET("data", customer.GetUserOrderData) // 订单数据
|
||
|
InRouter.GET("list", customer.GetUserOrderList) // 订单列表
|
||
|
InRouter.GET("detail", customer.GetUserOrderDetail) // 订单详情
|
||
|
InRouter.GET("goods/snapshot", customer.GetOrderGoodsInfo) // 获取商品快照信息
|
||
|
|
||
|
//InRouter.POST("order", customer.AddUserOrder) // 下单
|
||
|
InRouter.POST("create", customer.AddUserOrder1) // 下单
|
||
|
InRouter.PUT("orderStatus", customer.UpdateUserOrderStatus) // 订单状态变更(取消订单,确认订单)
|
||
|
InRouter.PUT("address", customer.UpdateOrderAddress) // 订单修改收货地址
|
||
|
InRouter.DELETE("order", customer.DeleteUserOrder) // 删除订单记录
|
||
|
//InRouter.POST("payOrder", customer.GetPayOrderSign) // 调起订单支付
|
||
|
InRouter.POST("orderPay", customer.GetPayOrderSign1) // 调起订单支付
|
||
|
InRouter.GET("checkOrder", customer.CheckOrder) // 确认订单
|
||
|
InRouter.GET("postSale", customer.GetOrderPostSale) // 获取订单提交售后记录
|
||
|
InRouter.POST("postSale", customer.OrderPostSale) // 订单提交售后
|
||
|
InRouter.DELETE("postSale", customer.CancelOrderPostSale) // 订单售后取消
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func InitInfluencerOrderRouterNoAuth(Router *gin.RouterGroup) {
|
||
|
InRouter := Router.Group("order")
|
||
|
{
|
||
|
InRouter.POST("orderMessage", customer.UserOrderMessage) // 支付结果通知
|
||
|
InRouter.POST("payment/callback", customer.PaymentCallback) // 支付微服务结果通知
|
||
|
}
|
||
|
}
|