@@ -0,0 +1,18 @@
|
||||
package daichongmod
|
||||
|
||||
// 获取订单信息
|
||||
type GetOrderReq struct {
|
||||
TraderId int64 `form:"traderId" json:"traderId"`
|
||||
PlayerId int64 `form:"playerId" json:"playerId"`
|
||||
Proof string `form:"proof" json:"proof"` //玩家上传的图片名称
|
||||
SessionId string `form:"sessionId" json:"sessionId"` //当前会话的sessionId
|
||||
ProT int `form:"productType" json:"productType" ` //0 站群 1棋牌
|
||||
}
|
||||
|
||||
// 聊天信息请求
|
||||
type PayInfoReq struct {
|
||||
TraderId int64 `form:"traderId" json:"traderId" binding:"required"`
|
||||
PlayerId int64 `form:"playerId" json:"playerId" binding:"required"`
|
||||
SessionId string `form:"sessionId" json:"sessionId" binding:"required"` //当前会话的sessionId
|
||||
ProT int `form:"productType" json:"productType" ` //0 站群 1棋牌
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
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"` //回调成功时间
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package sharemod
|
||||
|
||||
import "91porn-server/models/v/vidmod"
|
||||
|
||||
// VShareReq 内容分享请求
|
||||
type VShareReq struct {
|
||||
Content string `form:"content" json:"content"`
|
||||
VideoID string `form:"videoID" json:"videoID"` // 可选;视频分享成功时用于累计真实推荐分
|
||||
EventID string `form:"eventId" json:"eventId"` // 可选;同一次真实分享事件重试时保持不变,用于推荐分幂等
|
||||
ObjType string `form:"objType" json:"objType"` // drama 表示短剧分享
|
||||
MediaID string `form:"mediaID" json:"mediaID"`
|
||||
ContentID string `form:"contentID" json:"contentID"`
|
||||
}
|
||||
|
||||
// VShareCntReq 视频分享次数
|
||||
type VShareCntReq struct {
|
||||
VideoID string `form:"videoID" json:"videoID"`
|
||||
}
|
||||
|
||||
// VShareResp 内容分享应答
|
||||
type VShareResp struct {
|
||||
QrCode []byte `json:"qrCode"`
|
||||
}
|
||||
|
||||
// VShareCntResp 分享次数应答
|
||||
type VShareCntResp struct {
|
||||
VidelID string `json:"videoID"`
|
||||
Cnt int `json:"cnt"`
|
||||
}
|
||||
|
||||
// List 分享推荐列表
|
||||
type List struct {
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
SourceUrl string `json:"sourceUrl"`
|
||||
LandUrl string `json:"landUrl"`
|
||||
PicUrl string `json:"picUrl"`
|
||||
Tags []string `json:"tags"`
|
||||
DownloadUrl string `json:"downloadUrl"`
|
||||
List []vidmod.ShareInfo `json:"list"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package sharemod
|
||||
|
||||
// VShareModel 分享统计
|
||||
type VShareModel struct {
|
||||
UID int64 `json:"uid" bson:"uid"`
|
||||
Title int `json:"title" bson:"title"`
|
||||
ClickCnt int64 `json:"clickCnt" bson:"clickCnt"`
|
||||
ShareTime int64 `json:"shareTime" bson:"shareTime"`
|
||||
}
|
||||
Reference in New Issue
Block a user