XinYeYouKu/app/http/requestmapping/front.go

28 lines
1.0 KiB
Go

package requestmapping
import (
"qteam/app/constants/common"
"qteam/app/http/entities/front"
)
var FrontRequestMap = map[string]func() interface{}{
"/v1/GenerateSm2Key": func() interface{} { return new(struct{}) },
// 三方api回调
common.FRONT_API_V1 + "/notify/marketcallback": func() interface{} { return new(front.MarketApiRequest) },
// 兴业银行登录
common.FRONT_API_V1 + "/xy/login": func() interface{} { return new(front.LoginRequest) },
//用户信息
common.FRONT_API_V1_Auth + "/user": func() interface{} { return new(struct{}) },
//活动信息
common.FRONT_API_V1_Auth + "/activity": func() interface{} { return new(struct{}) },
// 生成订单
common.FRONT_API_V1_Auth + "/order/buy": 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) },
}