Files
kra-new/internal/service/dto/ledger.go
T

79 lines
3.3 KiB
Go

package dto
type LedgerQuery struct {
Page int `form:"pageNum" json:"pageNum"`
PageSize int `form:"pageSize" json:"pageSize"`
Sources []string `form:"sourceDb" json:"sourceDb"`
GameNames []string `form:"gameName" json:"gameName"`
UserID *int64 `form:"userId" json:"userId"`
PromoteAccount string `form:"promoteAccount" json:"promoteAccount"`
BusierAccount string `form:"busierAccount" json:"busierAccount"`
PlayerName string `form:"gamePlayerName" json:"gamePlayerName"`
OrderNumber string `form:"payOrderNumber" json:"payOrderNumber"`
PayStatus *int `form:"payStatus" json:"payStatus"`
PayWay *int `form:"payWay" json:"payWay"`
BeginRegisterTime string `form:"beginRegisterTime" json:"beginRegisterTime"`
EndRegisterTime string `form:"endRegisterTime" json:"endRegisterTime"`
BeginPayTime string `form:"beginPayTime" json:"beginPayTime"`
EndPayTime string `form:"endPayTime" json:"endPayTime"`
SortField string `form:"sortField" json:"sortField"`
SortOrder string `form:"sortOrder" json:"sortOrder"`
}
type RegistrationResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
ID uint64 `json:"id,string"`
UserID uint64 `json:"userId,string"`
RegisterTime *int64 `json:"registerTime"`
FirstGameID *int64 `json:"fgameId,string"`
FirstGameName string `json:"fgameName"`
TotalPayAmount *string `json:"totalPayAmount"`
RegisterIP string `json:"registerIp"`
DeviceName string `json:"deviceName"`
PromoteAccount string `json:"promoteAccount"`
PromoteID *int64 `json:"promoteId,string"`
BusierName string `json:"busierName"`
}
type SpendResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
ID uint64 `json:"id,string"`
UserID *int64 `json:"userId,string"`
OrderNumber string `json:"payOrderNumber"`
GameID *int64 `json:"gameId,string"`
GameName string `json:"gameName"`
ServerID string `json:"serverId"`
ServerName string `json:"serverName"`
PlayerName string `json:"gamePlayerName"`
PayAmount *string `json:"payAmount"`
PayTime *int64 `json:"payTime"`
PayWay *int `json:"payWay"`
PayStatus *int `json:"payStatus"`
IP string `json:"spendIp"`
PromoteAccount string `json:"promoteAccount"`
PromoteID *int64 `json:"promoteId,string"`
BusierName string `json:"busierName"`
}
type RegistrationPage struct {
Rows []*RegistrationResponse `json:"rows"`
Total int64 `json:"total"`
Available bool `json:"available"`
}
type SpendPage struct {
Rows []*SpendResponse `json:"rows"`
Total int64 `json:"total"`
TotalPayAmount *string `json:"totalPayAmount"`
Available bool `json:"available"`
}
type GameOptionQuery struct {
Sources []string `form:"sourceDb"`
Keyword string `form:"keyword"`
Limit int `form:"limit"`
}
type GameOptionResponse struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
GameID uint64 `json:"gameId,string"`
GameName string `json:"gameName"`
}