YouChuKoffee/app/http/requestmapping/front.go

28 lines
1.2 KiB
Go
Raw Normal View History

2024-06-17 14:18:39 +08:00
package requestmapping
2024-06-19 18:32:34 +08:00
import (
"qteam/app/constants/common"
"qteam/app/http/entities/front"
)
2024-06-17 16:29:39 +08:00
2024-06-17 14:18:39 +08:00
var FrontRequestMap = map[string]func() interface{}{
2024-06-17 16:29:39 +08:00
// 奶茶专区代金券列表
common.FRONT_API_V1 + "/VoucherList": func() interface{} { return new(struct{}) },
2024-06-19 18:32:34 +08:00
//联合登录
common.FRONT_API_V1 + "/UnionLogin": func() interface{} { return new(front.UnionLoginRequest) },
2024-06-24 11:44:38 +08:00
//商品详情
common.FRONT_API_V1 + "/product/detail": func() interface{} { return new(front.ProductDetailRequest) },
//订单回调
common.FRONT_API_V1 + "/order/notify": func() interface{} { return new(front.YouChuRequest) },
2024-06-19 18:32:34 +08:00
// 生成订单
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) },
2024-07-31 09:22:18 +08:00
//退款订单
common.FRONT_API_V1_Auth + "/order/delete": func() interface{} { return new(front.OrderQueryRequest) },
2024-06-17 14:18:39 +08:00
}