forked from all_user/stat_center
112 lines
5.9 KiB
Go
112 lines
5.9 KiB
Go
package proto
|
||
|
||
import (
|
||
"stat/common"
|
||
"time"
|
||
)
|
||
|
||
// 日常统计列表请求
|
||
type ListBlocRegisterDetailsReq struct {
|
||
AppId *int32 `form:"appId" json:"appId"` // appId
|
||
StartTime *time.Time `form:"startTime" json:"startTime"` // 开始时间
|
||
EndTime *time.Time `form:"endTime" json:"endTime"` // 结束时间
|
||
common.Page
|
||
}
|
||
|
||
type ListBlocRegisterDetailsRes struct {
|
||
Total int64 `json:"total"`
|
||
List []BlocRegisterDetailsInfo `json:"list"`
|
||
}
|
||
|
||
type BlocRegisterDetailsInfo struct {
|
||
UserId string `json:"userId" bson:"userId"` // 用户ID
|
||
AppName string `json:"appName" bson:"appName"` // appID
|
||
SysType string `json:"sysType" bson:"sysType"` // 操作系统类型 安卓 IOS
|
||
DevType string `json:"devType" bson:"devType"` // 设备类型
|
||
Mobile string `json:"mobile" bson:"mobile"` // 手机号
|
||
IP string `json:"ip,omitempty" bson:"ip"` // IP
|
||
Name string `json:"name" bson:"name"` // 名称
|
||
IsDirect bool `json:"isDirect" bson:"isDirect"` // true:直推用户
|
||
RegisterTime time.Time `json:"registerTime" bson:"registerTime"` // 注册时间
|
||
}
|
||
|
||
// 日常统计列表请求
|
||
type ListBlocRechargeDetailsReq struct {
|
||
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId
|
||
StartTime *time.Time `form:"startTime" json:"startTime"` // 开始时间
|
||
EndTime *time.Time `form:"endTime" json:"endTime" binding:"omitempty"` // 结束时间
|
||
common.Page
|
||
}
|
||
|
||
type ListBlocRechargeDetailsRes struct {
|
||
Total int64 `json:"total"`
|
||
List []BlocRechargeDetailsInfo `json:"list"`
|
||
}
|
||
|
||
type BlocRechargeDetailsInfo struct {
|
||
UserId string `json:"userId" bson:"userId"` // 用户ID
|
||
AppName string `json:"appName" bson:"appName"` // appID
|
||
SysType string `json:"sysType" bson:"sysType"` // 操作系统类型 安卓 IOS
|
||
DevType string `json:"devType" bson:"devType"` // 设备类型
|
||
ChannelName string `json:"channelName" bson:"channelName"` // 支付渠道名字
|
||
CID string `json:"cid" bson:"cid"` // 渠道id
|
||
Type string `bson:"type" json:"type"` // 充值方式
|
||
OrderId string `json:"orderId" bson:"orderId"` // 流水id
|
||
Money int64 `json:"money" bson:"money"` // 充值金额 订单金额
|
||
PayMoney int64 `json:"payMoney" bson:"payMoney"` // 实际到账金额 用户实际支付金额
|
||
Status int `json:"status" bson:"status"` // 3付款成功
|
||
SuccessAt time.Time `json:"successAt,omitempty" bson:"successAt,omitempty"` // 成功时间
|
||
}
|
||
|
||
type ListBlocWithdrawDetailsReq struct {
|
||
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId
|
||
StartTime *time.Time `form:"startTime" json:"startTime"` // 开始时间
|
||
EndTime *time.Time `form:"endTime" json:"endTime" binding:"omitempty"` // 结束时间
|
||
common.Page
|
||
}
|
||
|
||
type ListBlocWithdrawDetailsRes struct {
|
||
Total int64 `json:"total"`
|
||
List []ListBlocWithdrawDetailsInfo `json:"list"`
|
||
}
|
||
|
||
type ListBlocWithdrawDetailsInfo struct {
|
||
UID string `json:"uid" bson:"uid"` //用户Id
|
||
Name string `json:"name" bson:"name"` //用户名
|
||
AppName string `json:"appName" bson:"appName"` // appID
|
||
Amount int64 `json:"amount" bson:"amount"` //金币数量
|
||
Money int64 `json:"money" bson:"money" binding:"required"` //提现金额
|
||
PayMoney int64 `json:"payMoney" bson:"payMoney"` //实际到账
|
||
PayType string `json:"payType" bson:"payType" binding:"required"` //提现方式,alipay,bankcard
|
||
OID string `json:"oid" bson:"oid"` //第三方支付平台id
|
||
ActName string `json:"actName" bson:"actName"` //交易账户持有人
|
||
Act string `json:"act" bson:"act"` //交易账户
|
||
UserIP string `json:"userIp" bson:"userIp"` //用户ip
|
||
DeviceType string `json:"deviceType" bson:"deviceType"` //设备类型
|
||
DevID string `json:"devID" bson:"devID"` //设备id
|
||
Status int `json:"status" bson:"status"` //1未审核 2审核通过,转账中 3已拒绝 4未知错误 5提现成功 6提现失败
|
||
StatusDesc string `json:"statusDesc" bson:"statusDesc"` //状态说明
|
||
SuccessAt time.Time `json:"successAt" bson:"successAt"` //回调成功时间
|
||
ReceivedAt time.Time `json:"receivedAt" bson:"receivedAt"` //到账时间 李秋山确认 三方出款时间
|
||
}
|
||
|
||
type ListBlocRechargeChannelReq struct {
|
||
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId
|
||
StartTime *time.Time `form:"startTime" json:"startTime"` // 开始时间
|
||
EndTime *time.Time `form:"endTime" json:"endTime" binding:"omitempty"` // 结束时间
|
||
ChannelName *string `form:"channelName" json:"channelName" binding:"omitempty"` // 渠道名称筛选
|
||
common.Page
|
||
}
|
||
|
||
type ListBlocRechargeChannelRes struct {
|
||
Total int64 `json:"total"`
|
||
List []ListBlocRechargeChannelInfo `json:"list"`
|
||
}
|
||
|
||
type ListBlocRechargeChannelInfo struct {
|
||
SumDate time.Time `json:"sumDate"` // 记录时间 按天对齐
|
||
ChannelName string `json:"channelName"` // 支付渠道名称
|
||
BlocOrderMoney int64 `json:"blocOrderMoney"` // 订单金额
|
||
BlocChannelRate int64 `json:"blocChannelRate"` // 费率
|
||
}
|