108 lines
4.3 KiB
Go
108 lines
4.3 KiB
Go
package statcenterctl
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
)
|
|
|
|
// 全民代理查询
|
|
type UserInviteUserListReq struct {
|
|
UserId uint64 `form:"userId" json:"userId"` // 用户ID
|
|
Appid int32 `form:"appId" json:"appId"` // APPID
|
|
commod.Page
|
|
}
|
|
|
|
type UserInviteUserListRes struct {
|
|
Total int64 `json:"total"`
|
|
HasNext bool `json:"hasNext"`
|
|
List []UserInviteUserInfo `json:"list"`
|
|
}
|
|
|
|
type UserInviteUserInfo struct {
|
|
UserId uint64 `json:"userId"` // 邀请用户ID
|
|
Name string `json:"name"` // 邀请用户名称
|
|
Portrait string `json:"portrait"` // 被邀请人头像
|
|
BindPhone string `json:"bindPhone"` // 绑定
|
|
CreateAt time.Time `json:"createAt"` // 注册时间
|
|
}
|
|
|
|
type UserInviteIncomeListReq struct {
|
|
UserId uint64 `form:"userId" json:"userId" ` // 用户ID
|
|
Appid int32 `form:"appId" json:"appId"` // APPID
|
|
commod.Page
|
|
}
|
|
|
|
type UserInviteIncomeListRes struct {
|
|
//总邀请数
|
|
TotalInvites int64 `json:"totalInvites"`
|
|
//今日邀请
|
|
TodayInvites int64 `json:"todayInvites"`
|
|
//总邀请充值
|
|
TotalInviteAmount int64 `json:"totalInviteAmount"`
|
|
//今日充值
|
|
TodayInviteAmount int64 `json:"todayInviteAmount"`
|
|
//列表总数
|
|
Total int64 `json:"total"`
|
|
//是否还有下一页
|
|
HasNext bool `json:"hasNext"`
|
|
//列表
|
|
List []UserInviteIncomeInfo `json:"list"`
|
|
}
|
|
|
|
type UserInviteIncomeInfo struct {
|
|
// 充值用户
|
|
UserId uint64 `json:"userId"`
|
|
// 充值用户
|
|
UserName string `json:"userName"`
|
|
// 收入金币
|
|
IncomeAmount int64 `json:"incomeAmount" bson:"incomeAmount"`
|
|
// 分成比例
|
|
IncomeRate float64 `json:"incomeRate" bson:"incomeRate"`
|
|
// 充值时间
|
|
RechargeAt time.Time `json:"rechargeAt"`
|
|
}
|
|
|
|
type VideoIncomeListReq struct {
|
|
commod.Page
|
|
}
|
|
|
|
type StatcenterSyncReq struct {
|
|
Job string `json:"job"` // user_access/user_register 大于用户Id:
|
|
UserId uint64 `json:"userId"` // 用户ID
|
|
PlatformId string `json:"platformId"` // 原始平台Id
|
|
MaxSize int64 `json:"maxSize"` // 最大条数
|
|
SuccessTime time.Time `json:"successTime"` // 成功时间
|
|
}
|
|
|
|
type StatcenterSyncResp struct {
|
|
Code int `json:"code"` // 200正常 其他异常
|
|
Msg string `json:"msg"` // 错误消息
|
|
Job string `json:"job" bson:"job" binding:"required"` // 类型
|
|
AccessList []commod.UserAccessMsg `json:"accessList"` // 日活记录
|
|
RegisterList []commod.UserRegisterMsg `json:"registerList"` // 提现记录
|
|
BindingList []commod.UserBindingMsg `json:"bindingList"` // 用户绑定记录
|
|
InviteList []commod.UserInviteBindMsg `json:"inviteList"` // 邀请记录
|
|
ConsumeList []commod.ConsumeRecordMsg `json:"consumeList"` // 消费流水
|
|
RechargeList []commod.UserRechargeMsg `json:"rechargeList"` // 充值流水
|
|
AllRechargeList []commod.UserRechargeMsg `json:"allRechargeList"` // 全部支付订单
|
|
CardSellList []commod.CardSellMsg `json:"cardSellList"` // 会员卡特权卡销售流水
|
|
AiSellList []commod.AiSellMsg `json:"aiSellList"` // AI销售流水
|
|
}
|
|
|
|
type UserInviteIncomeListResWaLi struct {
|
|
TotalInvites int64 `json:"totalInvites"` //总推广人数
|
|
TodayInvites int64 `json:"todayInvites"` //今日推广
|
|
TotalInviteAmount int64 `json:"totalInviteAmount"` //总收益
|
|
YesterdaylInviteAmount int64 `json:"yesterdaylInviteAmount"` //昨日收益
|
|
Total int64 `json:"total"` //总数
|
|
List []UserInviteIncomeInfoWaLi `json:"list"` //收益记录
|
|
HasNext bool `json:"hasNext"`
|
|
}
|
|
|
|
type UserInviteIncomeInfoWaLi struct {
|
|
Desc string `json:"desc"` // 收益描述名称
|
|
IncomeAmount int64 `json:"incomeAmount"` // 收入金币
|
|
SetDate time.Time `json:"setDate"` // 结算时间
|
|
}
|