35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
package daichongmod
|
|
|
|
import "time"
|
|
|
|
// 代充回调公用请求结构体
|
|
type CommnReq struct {
|
|
AppId string `json:"appId" binding:"required"` //代充平台提供的appId
|
|
Data string `json:"data" binding:"required"` //加密字符串
|
|
}
|
|
|
|
// 商人登陆 加密结构体
|
|
type LoginSign struct {
|
|
Uid string `json:"uid"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// 商人余额 加密结构体
|
|
type BalanceSign struct {
|
|
Uids string `json:"uids"`
|
|
Time int64 `json:"time"` //时间戳
|
|
}
|
|
|
|
// 上分 通知新订单生成 加密结构体
|
|
type NewOrderSign struct {
|
|
FromId string `json:"fromId"` //商人uid
|
|
ToId string `json:"toId"` //用户uid
|
|
Amount int64 `json:"amount"` //上分数量
|
|
OrderId string `json:"orderId"` //订单号
|
|
ProductInfo string `json:"productInfo"` //商品信息
|
|
Time int64 `json:"time"` //本次通知发起的时间
|
|
TransNo string `json:"transNo"` //请求订单
|
|
ProT int `json:"productType"` //0站群 1棋牌
|
|
SuccessAt time.Time `json:"successAt"` //回调成功时间
|
|
}
|