tkcashgame_v4/app/eonline/internal/biz/payout.go

89 lines
3.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package biz
import (
"time"
"sandc/pkg/pagination"
)
// PayoutUser 提现用户信息
type PayoutUser struct {
Id uint `json:"id"` // 用户ID
Platform string `json:"platform"` // 平台
Ip string `json:"ip"` // ip地址
Country string `json:"country"` // 国家
DeviceId string `json:"device_id"` // 设备ID
Version string `json:"version"` // 版本号
Uuid string `json:"uuid"` // 用户唯一ID根据ip, country,device_id生成
LoginDays uint `json:"login_days"` // 登录天数
CreatedAt time.Time `json:"created_at"` // 创建时间
UpdatedAt time.Time `json:"updated_at"` // 更新时间
ClientData string `json:"clientData"` // 客户端数据
}
// 提现记录
type PayoutRecord struct {
Id uint `json:"id"` // 提现记录ID
PayoutId string `json:"payout_id"` // 支付第三方id
RecordNo string `json:"record_no"` // 提现唯一编码
Channel string `json:"channel"` // 支付渠道
Uuid string `json:"uuid"` // 提现用户唯一编码
Account string `json:"account"` // 提现账号
ItemId uint `json:"item_id"` // 提现的item对应id
Amount float64 `json:"amount"` // 提现金额
Currency string `json:"currency"` // 货币单位
Status uint8 `json:"status"` // 提现状态 1:提现中,2:提现成功,3:提现失败
Ecpm uint8 `json:"ecpm"` // ecpm等级
Version string `json:"version"` // 版本号
CreatedAt time.Time `json:"created_at"` // 创建时间
UpdatedAt time.Time `json:"updated_at"` // 更新时间
Fail string `json:"fail"` // 提现失败原因
Email string `json:"email"` // 邮箱
}
// 分红记录
type BonusRecord struct {
Id uint `json:"id"` // 年月日时间ID
Dau uint `json:"dau"` // 原始dau
Pass uint `json:"pass"` // 通关总份额
Coin uint `json:"coin"` // 分红每一份额美分数
Bonus uint `json:"bonus"` // 服务器分红总额美分
BonusCur uint `json:"bonus_cur"` // 服务器实际分红总额美分
CreatedAt time.Time `json:"created_at"` // 创建时间
UpdatedAt time.Time `json:"updated_at"` // 更新时间
}
// SearchPayoutUserReq 查询提现用户信息请求
type SearchPayoutUserReq struct {
Page pagination.Paginator // 分页信息
DisablePaging bool
SelectFields string
SortBy string
Uuid string
StartTime time.Time
EndTime time.Time
}
// ListPayoutUser 提现用户信息列表
type ListPayoutUser struct {
Total int32
Items []*PayoutUser
}
// SearchPayoutRecordReq 查询提现记录请求
type SearchPayoutRecordReq struct {
Page pagination.Paginator // 分页信息
DisablePaging bool
SelectFields string
SortBy string
Uuid string
StartTime time.Time
EndTime time.Time
}
// ListPayoutRecord
type ListPayoutRecord struct {
Total int32
Items []*PayoutRecord
}