28 lines
1.2 KiB
Go
28 lines
1.2 KiB
Go
package requestmapping
|
|
|
|
import (
|
|
"qteam/app/constants/common"
|
|
"qteam/app/http/entities/front"
|
|
)
|
|
|
|
var FrontRequestMap = map[string]func() interface{}{
|
|
// 奶茶专区代金券列表
|
|
common.FRONT_API_V1 + "/VoucherList": func() interface{} { return new(struct{}) },
|
|
//联合登录
|
|
common.FRONT_API_V1 + "/UnionLogin": func() interface{} { return new(front.UnionLoginRequest) },
|
|
//商品详情
|
|
common.FRONT_API_V1 + "/product/detail": func() interface{} { return new(front.ProductDetailRequest) },
|
|
//订单回调
|
|
common.FRONT_API_V1 + "/order/notify": func() interface{} { return new(front.YouChuRequest) },
|
|
// 生成订单
|
|
common.FRONT_API_V1_Auth + "/order/create": func() interface{} { return new(front.OrderCreateRequest) },
|
|
//订单列表
|
|
common.FRONT_API_V1_Auth + "/order/list": func() interface{} { return new(front.OrderListRequest) },
|
|
// 查询订单
|
|
common.FRONT_API_V1_Auth + "/order/query": func() interface{} { return new(front.OrderQueryRequest) },
|
|
//退款订单
|
|
common.FRONT_API_V1_Auth + "/order/refund": func() interface{} { return new(front.OrderQueryRequest) },
|
|
//退款订单
|
|
common.FRONT_API_V1_Auth + "/order/delete": func() interface{} { return new(front.OrderQueryRequest) },
|
|
}
|