69 lines
2.4 KiB
Go
69 lines
2.4 KiB
Go
package dto
|
|
|
|
import "encoding/json"
|
|
|
|
type ChannelQuery struct {
|
|
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"`
|
|
}
|
|
type ChannelResponse struct {
|
|
ID uint64 `json:"id"`
|
|
SourceDB string `json:"sourceDb"`
|
|
PlatformName string `json:"platformName"`
|
|
Account string `json:"account"`
|
|
Nickname string `json:"nickname"`
|
|
Level *int `json:"promoteLevel"`
|
|
ParentID uint64 `json:"parentId"`
|
|
ParentName string `json:"parentName"`
|
|
RealName string `json:"realName"`
|
|
RegisterType *int `json:"registerType"`
|
|
BusierID uint64 `json:"busierId"`
|
|
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"`
|
|
}
|
|
type ChannelBindOption struct {
|
|
SourceDB string `json:"sourceDb"`
|
|
PlatformBusierID uint64 `json:"platformBusierId"`
|
|
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"`
|
|
SourceDB string `json:"sourceDb"`
|
|
}
|
|
type ChannelGameQuery struct {
|
|
SourceDB string `form:"sourceDb"`
|
|
PromoteID uint64 `form:"promoteId"`
|
|
}
|
|
type ChannelGameResponse struct {
|
|
GameID uint64 `json:"gameId"`
|
|
GameName string `json:"gameName"`
|
|
RegisterCount int64 `json:"registerCount"`
|
|
PayAmount string `json:"payAmount"`
|
|
}
|