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

90 lines
3.3 KiB
Go

package dto
import "encoding/json"
type ChannelQuery struct {
Effective *bool `form:"effective"`
Page int `form:"pageNum"`
PageSize int `form:"pageSize"`
Sources []string `form:"sourceDb"`
BusierUserID *uint `form:"busierUserId"`
BusierAccount string `form:"busierAccount"`
Keyword string `form:"keyword"`
Level *int `form:"promoteLevel"`
RegisterType *int `form:"registerType"`
Status *int `form:"status"`
LockStatus *int `form:"lockStatus"`
Phone string `form:"phone"`
SettlementDays *int `form:"settlementDays"`
CreatedBegin string `form:"createdBegin"`
CreatedEnd string `form:"createdEnd"`
LoginBegin string `form:"loginBegin"`
LoginEnd string `form:"loginEnd"`
SortField string `form:"sortField"`
SortOrder string `form:"sortOrder"`
}
type ChannelResponse struct {
Effective bool `json:"effective"`
QualifiedAt *int64 `json:"qualifiedAt"`
CreatedAt *int64 `json:"createdAt"`
LastLoginAt *int64 `json:"lastLoginAt"`
Phone string `json:"phone"`
SettlementDays *int `json:"settlementDays"`
ID uint64 `json:"id,string"`
SourceDB string `json:"sourceDb"`
PlatformName string `json:"platformName"`
Account string `json:"account"`
Nickname string `json:"nickname"`
Level *int `json:"promoteLevel"`
ParentID uint64 `json:"parentId,string"`
ParentName string `json:"parentName"`
RealName string `json:"realName"`
RegisterType *int `json:"registerType"`
BusierID uint64 `json:"busierId,string"`
BusierUserID *uint `json:"busierUserId"`
BusierDisplayName string `json:"busierDisplayName"`
Status *int `json:"status"`
LockStatus *int `json:"lockStatus"`
GameCount *int64 `json:"gameCount"`
PlayerCount *int64 `json:"playerCount"`
TotalPayAmount *string `json:"totalPayAmount"`
}
type ChannelPage struct {
Rows []*ChannelResponse `json:"rows"`
Total int64 `json:"total"`
Available bool `json:"available"`
StatusCounts *ChannelStatusCounts `json:"statusCounts"`
}
type ChannelStatusCounts struct {
Normal int64 `json:"normal"`
Locked int64 `json:"locked"`
Terminated int64 `json:"terminated"`
}
type ChannelBindOption struct {
SourceDB string `json:"sourceDb"`
PlatformBusierID uint64 `json:"platformBusierId,string"`
Account string `json:"platformBusierAccount"`
UserID uint `json:"userId"`
}
type ChannelCreateRequest struct {
SourceDB string `json:"sourceDb"`
PlatformBusierID json.Number `json:"platformBusierId"`
Account string `json:"account"`
Password string `json:"password"`
RegisterType *int `json:"registerType"`
}
type ChannelCreateResult struct {
ID uint64 `json:"id,string"`
SourceDB string `json:"sourceDb"`
}
type ChannelGameQuery struct {
SourceDB string `form:"sourceDb"`
PromoteID uint64 `form:"promoteId"`
}
type ChannelGameResponse struct {
GameID uint64 `json:"gameId,string"`
GameName string `json:"gameName"`
RegisterCount int64 `json:"registerCount"`
PayAmount string `json:"payAmount"`
}