protocol

package
v0.0.0-...-19a34af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginStatusSucc = 1
	LoginStatusFail = 2
)

登录状态

View Source
const (
	ActionNewAccountSignIn    = "accountLogin"
	ActionGuestSignIn         = "anonymousLogin"
	ActionOldAccountSignIn    = "oldAccountLogin"
	ActionWebChatSignIn       = "webChatSignIn"
	ActionPhoneNumberRegister = "phoneRegister"
	ActionNormalRegister      = "normalRegister"
	ActionGetVerification     = "getVerification"
	ActionAccountRegister     = "accountRegister"
)
View Source
const (
	LoginTypeAuto   = "auto"
	LoginTypeManual = "manual"
)
View Source
const (
	VerificationTypeRegister = "register"
	VerificationTypeFindPW   = "findPW"
)
View Source
const (
	MatchTypeClassic = 1 //经典
	MatchTypeDaily   = 3 //每日匹配
)

匹配类型

View Source
const (
	CoinTypeSliver = 0 //银币
	CoinTypeGold   = 1 //金币
)
View Source
const (
	RoomTypeClassic      = 0
	RoomTypeDailyMatch   = 1
	RoomTypeMonthlyMatch = 2
	RoomTypeFinalMatch   = 3
)
View Source
const (
	DailyMatchLevelJunior = 0
	DailyMatchLevelSenior = 1
	DailyMatchLevelMaster = 2
)
View Source
const (
	ClassicLevelJunior = 0
	ClassicLevelMiddle = 1
	ClassicLevelSenior = 2
	ClassicLevelElite  = 3
	ClassicLevelMaster = 4
)
View Source
const (
	ExitTypeExitDeskUI           = -1
	ExitTypeDissolve             = 6
	ExitTypeSelfRequest          = 0
	ExitTypeClassicCoinNotEnough = 1
	ExitTypeDailyMatchEnd        = 2
	ExitTypeNotReadyForStart     = 3
	ExitTypeChangeDesk           = 4
	ExitTypeRepeatLogin          = 5
)
View Source
const (
	DeskStatusZb      = 1
	DeskStatusDq      = 2
	DeskStatusPlaying = 3
	DeskStatusEnded   = 4
)
View Source
const (
	SexTypeUnknown = 0
	SexTypeMale    = 1
	SexTypeFemale  = 2
)
View Source
const (
	UserTypeGuest    = 0
	UserTypeLaoBaShi = 1
)
View Source
const (
	OptypeIllegal = 0
	OptypeCall    = 1
	OptypeOpen    = 2
	OptypePass    = 3
)

OpType

View Source
const (
	ChannelOptionAll  = "allChannel"
	ChannelOptionHalf = "halfChannel"
)

创建房间频道选项

View Source
const (
	RouteOpTypeHint = "onOpTypeHint"
	RouteTypeDo     = "onOpTypeDo"
)
View Source
const (
	RegTypeThird = 5 //三方平台添加账号
)

Variables

View Source
var EmptyMessage = &None{}
View Source
var SuccessMessage = &StringMessage{Message: "success"}
View Source
var SuccessResponse = StringResponse{0, "success"}

Functions

This section is empty.

Types

type ActivationUser

type ActivationUser CommonStatsItem

活跃用户

type AgentDetail

type AgentDetail struct {
	Id        int64  `json:"id"`
	Name      string `json:"name"`
	Account   string `json:"account"`
	CardCount int64  `json:"card_count"`
	CreateAt  int64  `json:"create_at"`
}

type AgentListResponse

type AgentListResponse struct {
	Code   int           `json:"code"`
	Agents []AgentDetail `json:"agents"`
	Total  int64         `json:"total"`
}

type AgentLoginRequest

type AgentLoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type AgentLoginResponse

type AgentLoginResponse struct {
	Code   int         `json:"code"`
	Token  string      `json:"token"`
	Detail AgentDetail `json:"detail"`
}

type AppInfo

type AppInfo struct {
	Name            string                       `json:"name"`             //应用名
	AppID           string                       `json:"appid"`            //应用id
	AppKey          string                       `json:"appkey"`           //应用key
	RedirectURI     string                       `json:"redirect_uri"`     //注册时填的redirect_uri
	Extra           string                       `json:"extra"`            //额外信息
	ThirdProperties map[string]map[string]string `json:"third_properties"` //此app在第三方平台(eg: wechat)上的相关配置
}

type AppInfoRequest

type AppInfoRequest struct {
	AppID string `json:"appid"` //应用ID
}

type AppInfoResponse

type AppInfoResponse struct {
	Code int32   `json:"code"` //状态码
	Data AppInfo `json:"data"` //数据
}

type AppListRequest

type AppListRequest struct {
	CpID   string `json:"cp_id"`
	Offset int    `json:"offset"`
	Count  int    `json:"count"`
}

type AppListResponse

type AppListResponse struct {
	Code  int       `json:"code"`  //状态码
	Data  []AppInfo `json:"data"`  //应用列表
	Total int64     `json:"total"` //总数量
}

type AppStatsRequest

type AppStatsRequest struct {
	AppID     string  `json:"app_id"`
	ChannelID string  `json:"channel_id"`
	Remote    string  `json:"remote"`
	Event     string  `json:"event"`
	Extra     string  `json:"extra"`
	Device    *Device `json:"device"`
}

type Call

type Call struct {
	Uid        int64  `json:"acId"`
	CalledDice string `json:"dcs"`
}

type CardConsume

type CardConsume CommonStatsItem

房卡消耗

type ChannelAndAPPStatsSummary

type ChannelAndAPPStatsSummary struct {
	Start                int64  `json:"start"`
	AppId                string `json:"app_id"`
	ChannelId            string `json:"channel_id"`
	AppName              string `json:"app_name"`
	ChannelName          string `json:"channel_name"`
	AccountInc           int64  `json:"account_inc"`            //新增用户
	DeviceInc            int64  `json:"device_inc"`             //新增设备
	TotalRecharge        int64  `json:"total_recharge"`         //总充值
	TotalRechargeAccount int64  `json:"total_recharge_account"` //总充值人数

	PaidAccountInc       int64 `json:"paid_account_inc"`        //新增付费用户
	PaidTotalRechargeInc int64 `json:"paid_total_recharge_inc"` //新增付费总额

	RegPaidAccountInc       int64 `json:"reg_paid_account_inc"`        //新增注册并付费用户
	RegPaidTotalRechargeInc int64 `json:"reg_paid_total_recharge_inc"` //新增注册并付费总额

	//PaidAccountIncRate    float32 `json:"paid_account_inc_rate"`     //新增用户付费率
	RegPaidAccountIncRate string `json:"reg_paid_account_inc_rate"` //新增注册用户付费率
}

type ChannelAndAPPStatsSummaryResponse

type ChannelAndAPPStatsSummaryResponse struct {
	Code  int                          `json:"code"`  //状态码
	Data  []*ChannelAndAPPStatsSummary `json:"data"`  //
	Total int                          `json:"total"` //总数量
}

type ChannelAndAppStatsSummaryRequest

type ChannelAndAppStatsSummaryRequest struct {
	AppIds     []string `json:"app_ids"`
	ChannelIds []string `json:"channel_ids"`
	Start      int64    `json:"start"`
	End        int64    `json:"end"`
	SortBy     byte     `json:"sort_by"`
}

type CheckUserInfoRequest

type CheckUserInfoRequest struct {
	Type       int    `json:"type"`        //注册方式: 1-手机 2-贪玩蛇
	Name       string `json:"name"`        //用户名, 可空,当非游客注册时用户名与手机号必须至少出现一项
	VerifyID   string `json:"verify_id"`   //验证码ID
	VerifyCode string `json:"verify_code"` //验证码
	Phone      string `json:"phone"`       //手机号,可空
	AppID      string `json:"appid"`
}

type ChooseOneScoreRequest

type ChooseOneScoreRequest struct {
	Pos int `json:"pos"`
}

type ClientConfig

type ClientConfig struct {
	Version     string `json:"version"`
	Android     string `json:"android"`
	IOS         string `json:"ios"`
	Heartbeat   int    `json:"heartbeat"`
	ForceUpdate bool   `json:"forceUpdate"`

	Title string `json:"title"` // 分享标题
	Desc  string `json:"desc"`  // 分享描述

	Daili1 string `json:"daili1"`
	Daili2 string `json:"daili2"`
	Kefu1  string `json:"kefu1"`

	AppId  string `json:"appId"`
	AppKey string `json:"appKey"`
}

type ClientInitCompletedRequest

type ClientInitCompletedRequest struct {
	IsReEnter bool `json:"isReenter"`
}

type CoinChangeInformation

type CoinChangeInformation struct {
	Coin int64 `json:"coin"`
}

type CommonResponse

type CommonResponse struct {
	Code int         `json:"code"` //状态码
	Data interface{} `json:"data"` //整数状态
}

type CommonStatsItem

type CommonStatsItem struct {
	Date  int64 `json:"date"`
	Value int64 `json:"value"`
}

type CreateDeskRequest

type CreateDeskRequest struct {
	Version  string       `json:"version"` //客户端版本
	ClubId   int64        `json:"clubId"`  // 俱乐部ID
	DeskOpts *DeskOptions `json:"options"` // 游戏额外选项
}

type CreateDeskResponse

type CreateDeskResponse struct {
	Code      int       `json:"code"`
	Error     string    `json:"error"`
	TableInfo TableInfo `json:"tableInfo"`
}

type DailyMatchProgressInfo

type DailyMatchProgressInfo struct {
	HasProgress  bool  `json:"hasProgress"`
	IsHaveFanPai bool  `json:"isHaveFanPai"`
	Heart        int   `json:"heart"` //最大只能是3
	BaoPaiMax    int   `json:"baoPaiMax"`
	BaoPaiNum    int   `json:"baoPaiNum"`
	Coin         int64 `json:"coin"`
	Score        int   `json:"score"`
	RoomType     int   `json:"roomType"`
	BaoPaiID     int   `json:"baoPaiId"`
}

type DailyStats

type DailyStats struct {
	Score     int      `json:"score"`      //战绩
	AsCreator int64    `json:"as_creator"` //开房次数
	Win       int      `json:"win"`        // 赢的次数
	DeskNos   []string `json:"desks"`      //所参加的桌号

}

type DeleteAppRequest

type DeleteAppRequest struct {
	AppID string `json:"appid"` //应用ID
}

type DeleteDeskByIDRequest

type DeleteDeskByIDRequest struct {
	ID string `json:"id"` //房间ID
}

type DeleteUserRequest

type DeleteUserRequest struct {
	UID int64 `json:"uid"`
}

type Desk

type Desk struct {
	Id           int64  `json:"id"`
	DeskNo       string `json:"desk_no"`
	Mode         int    `json:"mode"`
	Player0      int64  `json:"player0"`
	Player1      int64  `json:"player1"`
	Player2      int64  `json:"player2"`
	Player3      int64  `json:"player3"`
	Player4      int64  `json:"player4"`
	PlayerName0  string `json:"player_name0"`
	PlayerName1  string `json:"player_name1"`
	PlayerName2  string `json:"player_name2"`
	PlayerName3  string `json:"player_name3"`
	PlayerName4  string `json:"player_name4"`
	ScoreChange0 int    `json:"score_change0"`
	ScoreChange1 int    `json:"score_change1"`
	ScoreChange2 int    `json:"score_change2"`
	ScoreChange3 int    `json:"score_change3"`
	ScoreChange4 int    `json:"score_change4"`
	CreatedAt    int64  `json:"created_at"`
	CreatedAtStr string `json:"created_at_str"`
	Extras       string `json:"extras"`
}

type DeskBasicInfo

type DeskBasicInfo struct {
	DeskID string `json:"deskId"`
	Title  string `json:"title"`
	Desc   string `json:"desc"`
	Mode   int    `json:"mode"`
}

type DeskByIDRequest

type DeskByIDRequest struct {
	ID int64 `json:"id"` //房间ID
}

type DeskByIDResponse

type DeskByIDResponse struct {
	Code int   `json:"code"`
	Data *Desk `json:"data"`
}

type DeskListRequest

type DeskListRequest struct {
	Player int64 `json:"player"`
	Offset int   `json:"offset"`
	Count  int   `json:"count"`
}

type DeskListResponse

type DeskListResponse struct {
	Code  int    `json:"code"`
	Total int64  `json:"total"` //总数量
	Data  []Desk `json:"data"`
}

type DeskOptions

type DeskOptions struct {
	Mode int `json:"mode"`
}

type DeskPlayerData

type DeskPlayerData struct {
	Uid       int64 `json:"acId"`
	HandDices []int `json:"shouPaiIds"`
	CallDices []int `json:"callDices"`
	Open      int   `json:"open"`
	Score     int   `json:"score"`
}

type DestoryDeskRequest

type DestoryDeskRequest struct {
	DeskNo string `json:"deskId"`
}

type DestroyDeskResponse

type DestroyDeskResponse struct {
	RoundStats       *RoundOverStats `json:"roundStats"`
	MatchStats       []MatchStats    `json:"stats"`
	Title            string          `json:"title"`
	IsNormalFinished bool            `json:"isNormalFinished"`
}

type Device

type Device struct {
	IMEI   string `json:"imei"`   //设备的imei号
	OS     string `json:"os"`     //os版本号
	Model  string `json:"model"`  //硬件型号
	IP     string `json:"ip"`     //内网IP
	Remote string `json:"remote"` //外网IP
}

type DissolveResponse

type DissolveResponse struct {
	DissolveUid    int64                `json:"dissolveUid"`
	DissolveStatus []DissolveStatusItem `json:"dissolveStatus"`
	RestTime       int32                `json:"restTime"`
}

type DissolveResult

type DissolveResult struct {
	DeskPos int `json:"deskPos"`
}

type DissolveStatusItem

type DissolveStatusItem struct {
	DeskPos int    `json:"deskPos"`
	Status  string `json:"status"`
}

type DissolveStatusRequest

type DissolveStatusRequest struct {
	Result bool `json:"result"`
}

type DissolveStatusResponse

type DissolveStatusResponse struct {
	DissolveStatus []DissolveStatusItem `json:"dissolveStatus"`
	RestTime       int32                `json:"restTime"`
}

type EmptyRequest

type EmptyRequest struct{}

type EncryptTest

type EncryptTest struct {
	Payload string `json:"payload"`
	Key     string `json:"key"`
}

type EncryptTestTest

type EncryptTestTest struct {
	Result string `json:"result"`
}

type EnterDeskInfo

type EnterDeskInfo struct {
	DeskPos  int    `json:"deskPos"`
	Uid      int64  `json:"acId"`
	Nickname string `json:"nickname"`
	IsReady  bool   `json:"isReady"`
	Sex      int    `json:"sex"`
	IsExit   bool   `json:"isExit"`
	HeadUrl  string `json:"headURL"`
	Score    int    `json:"score"`
	IP       string `json:"ip"`
	Offline  bool   `json:"offline"`
}

type EnterPublicDeskRequest

type EnterPublicDeskRequest struct {
	Version string `json:"version"`
	DeskNo  string `json:"deskId"`
	Mode    int    `json:"mode"`
}

type EnterPublicDeskResponse

type EnterPublicDeskResponse struct {
	Code      int       `json:"code"`
	Error     string    `json:"error"`
	TableInfo TableInfo `json:"tableInfo"`
}

type ErrorMessage

type ErrorMessage struct {
	ErrorType int    `json:"errorType"`
	Message   string `json:"msg"`
}

type ErrorResponse

type ErrorResponse struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

type ExitPublicDeskRequest

type ExitPublicDeskRequest struct {
	DeskNo string `json:"deskId"`
}

type ExitRequest

type ExitRequest struct {
	IsDestroy bool `json:"isDestroy"`
}

type ExitResponse

type ExitResponse struct {
	AccountId int64 `json:"acid"`
	IsExit    bool  `json:"isexit"`
	ExitType  int   `json:"exitType"`
	DeskPos   int   `json:"deskPos"`
}

type GameEndScoreChange

type GameEndScoreChange struct {
	Uid    int64 `json:"acId"`
	Score  int   `json:"score"`
	Remain int   `json:"remain"`
}

type HandDicesInfo

type HandDicesInfo struct {
	Uid   int64 `json:"acId"`
	Dices []int `json:"shouPai"`
}

type JoinDeskRequest

type JoinDeskRequest struct {
	Version string `json:"version"`
	//AccountId int64         `json:"acId"`
	DeskNo string `json:"deskId"`
}

type JoinDeskResponse

type JoinDeskResponse struct {
	Code      int       `json:"code"`
	Error     string    `json:"error"`
	TableInfo TableInfo `json:"tableInfo"`
}

type LoginInfo

type LoginInfo struct {
	// 三方登录字段
	Platform     string `json:"platform"`      //三方平台
	ThirdAccount string `json:"third_account"` //三方平台唯一ID
	ThirdName    string `json:"account"`       //三方平台账号名

	Token      string `json:"token"`       //用户Token
	ExpireTime int64  `json:"expire_time"` //Token过期时间

	AccountID int64 `json:"acId"` //用户的uuid,即user表的pk

	GameServerIP   string `json:"ip"` //游戏服的ip&port
	GameServerPort int    `json:"port"`
}

type LoginRequest

type LoginRequest struct {
	AppID     string `json:"appId"`     //用户来自于哪一个应用
	ChannelID string `json:"channelId"` //用户来自于哪一个渠道
	IMEI      string `json:"imei"`
	Device    Device `json:"device"`
}

type LoginResponse

type LoginResponse struct {
	Code     int          `json:"code"`
	Name     string       `json:"name"`
	Uid      int64        `json:"uid"`
	HeadUrl  string       `json:"headUrl"`
	Coin     int64        `json:"coin"`
	Sex      int          `json:"sex"` //[0]未知 [1]男 [2]女
	IP       string       `json:"ip"`
	Port     int          `json:"port"`
	PlayerIP string       `json:"playerIp"`
	Config   ClientConfig `json:"config"`
	Messages []string     `json:"messages"`
	Debug    int          `json:"debug"`
}

type LoginToGameServerRequest

type LoginToGameServerRequest struct {
	Name    string `json:"name"`
	Uid     int64  `json:"uid"`
	HeadUrl string `json:"headUrl"`
	Sex     int    `json:"sex"` //[0]未知 [1]男 [2]女
	Coin    int    `json:"coin"`
	IP      string `json:"ip"`
}

type LoginToGameServerResponse

type LoginToGameServerResponse struct {
	Uid      int64  `json:"acId"`
	Nickname string `json:"nickname"`
	HeadUrl  string `json:"headURL"`
	Sex      int    `json:"sex"`
	Coin     int    `json:"coin"`
}

type MatchStats

type MatchStats struct {
	TotalScore  int    `json:"totalScore"`  //总分
	Uid         int64  `json:"uid"`         //id
	Account     string `json:"account"`     //名字
	IsPaoWang   bool   `json:"isPaoWang"`   //是否是炮王
	IsBigWinner bool   `json:"isBigWinner"` //是否是大赢家
}

type MingAction

type MingAction struct {
	KouIndexs []int `json:"kou"` //index
	ChuPaiID  int   `json:"chu"`
	HuIndexs  []int `json:"hu"`
}

type None

type None struct{}

type OnCallRequest

type OnCallRequest struct {
	CalledDice string `json:"data"`
}

type OnGuoRequest

type OnGuoRequest struct {
	CalledDice string `json:"data"`
}

type OnOpenRequest

type OnOpenRequest struct {
	Turn       int    `json:"turn"`
	Beturn     int    `json:"beturn"`
	CalledDice string `json:"data"`
}

type OpChooseRequest

type OpChooseRequest struct {
	OpType int    `json:"optype"`
	Index  string `json:"idx"`
}

type OpChoosed

type OpChoosed struct {
	Type       int
	CalledDice string
}

选择执行的动作

type OpenDiceType

type OpenDiceType int
const (
	OpenTypeWin OpenDiceType = iota
	OpenTypeLose
)

type OpenInfo

type OpenInfo struct {
	Uid          int64        `json:"acId"`
	OpenDiceType OpenDiceType `json:"OpenDiceType"`
	WinLose      bool         `json:"winlose"`
}

type PlayRecordingVoice

type PlayRecordingVoice struct {
	Uid    int64  `json:"uid"`
	FileId string `json:"fileId"`
}

type PlayerEnterDesk

type PlayerEnterDesk struct {
	Data []EnterDeskInfo `json:"data"`
}

type PlayerOfflineStatus

type PlayerOfflineStatus struct {
	Uid     int64 `json:"uid"`
	Offline bool  `json:"offline"`
}

type PlayerReady

type PlayerReady struct {
	Account int64 `json:"account"`
}

type QueryInfo

type QueryInfo struct {
	Name        string `json:"name"`
	MaskedPhone string `json:"masked_phone"`
}

type QueryUserByAttrRequest

type QueryUserByAttrRequest struct {
	Attr string `json:"attr"` //属性
}

用属性查询用户

type QueryUserRequest

type QueryUserRequest struct {
	Name string `json:"name"` //用户名
}

type QueryUserResponse

type QueryUserResponse struct {
	Code int       `json:"code"`
	Data QueryInfo `json:"data"`
}

type Rank

type Rank struct {
	Uid   int64  `json:"uid"`
	Name  string `json:"name"`
	Value int64  `json:"value"`
}

type ReConnect

type ReConnect struct {
	Uid     int64  `json:"uid"`
	Name    string `json:"name"`
	HeadUrl string `json:"headUrl"`
	Sex     int    `json:"sex"`
}

type ReEnterDeskRequest

type ReEnterDeskRequest struct {
	DeskNo string `json:"deskId"`
}

type ReEnterDeskResponse

type ReEnterDeskResponse struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

type ReJoinDeskRequest

type ReJoinDeskRequest struct {
	DeskNo string `json:"deskId"`
}

type ReJoinDeskResponse

type ReJoinDeskResponse struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

type RechargeDetail

type RechargeDetail struct {
	PlayerId  int64  `json:"player_id"`
	Extra     string `json:"extra"`
	CreateAt  int64  `json:"create_at"`
	CardCount int64  `json:"card_count"`
}

type RechargeListResponse

type RechargeListResponse struct {
	Code      int              `json:"code"`
	Recharges []RechargeDetail `json:"recharges"`
	Total     int64            `json:"total"`
}

type RecordingVoice

type RecordingVoice struct {
	FileId string `json:"fileId"`
}

type RegisterAgentRequest

type RegisterAgentRequest struct {
	Name     string `json:"name"`
	Account  string `json:"account"`
	Password string `json:"password"`
	Extra    string `json:"extra"`
}

type RegisterAppRequest

type RegisterAppRequest struct {
	Name            string                       `json:"name"`             //应用名
	RedirectURI     string                       `json:"redirect_uri"`     //回调地址
	Extra           string                       `json:"extra"`            //应用描述
	CpID            string                       `json:"cp_id"`            //内容供应商ID
	ThirdProperties map[string]map[string]string `json:"third_properties"` //第三方属性
}

type RegisterAppResponse

type RegisterAppResponse struct {
	Code int32   `json:"code"` //状态码
	Data AppInfo `json:"data"` //数据
}

type RegisterUserRequest

type RegisterUserRequest struct {
	Type       int    `json:"type"`        //注册方式: 1-手机 2-贪玩蛇
	Name       string `json:"name"`        //用户名, 可空,当非游客注册时用户名与手机号必须至少出现一项
	Password   string `json:"password"`    //MD5后的用户密码, 长度>=6
	VerifyID   string `json:"verify_id"`   //验证码ID
	VerifyCode string `json:"verify_code"` //验证码
	Phone      string `json:"phone"`       //手机号,可空
	AppID      string `json:"appid"`       //来自于哪一个应用的注册
	ChannelID  string `json:"channel_id"`  //来自于哪一个渠道的注册
	Device     Device `json:"device"`      //设备信息
	Token      string `json:"token"`       //Token, 游客注册并绑定时, 验证游客身份
}

type Retention

type Retention struct {
	Date     int   `json:"date"`
	Register int64 `json:"register"`

	Retention_1  RetentionLite `json:"retention_1"`  //次日
	Retention_2  RetentionLite `json:"retention_2"`  //2日
	Retention_3  RetentionLite `json:"retention_3"`  //3日
	Retention_7  RetentionLite `json:"retention_7"`  //7日
	Retention_14 RetentionLite `json:"retention_14"` //14日
	Retention_30 RetentionLite `json:"retention_30"` //30日

}

type RetentionListRequest

type RetentionListRequest struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

type RetentionLite

type RetentionLite struct {
	Login int64  `json:"login"`
	Rate  string `json:"rate"`
}

type RetentionResponse

type RetentionResponse struct {
	Code int `json:"code"`

	Data interface{} `json:"data"`
}

type Roll

type Roll struct {
	AccountInfo []RollInfo `json:"accountInfo"`
}

type RollInfo

type RollInfo struct {
	Uid    int64 `json:"acId"`
	OnHand []int `json:"dcs"`
}

type RoundOverStats

type RoundOverStats struct {
	Title       string               `json:"title"`
	HandDices   []*HandDicesInfo     `json:"tiles"`
	ScoreChange []GameEndScoreChange `json:"scoreChange"`
}

type RoundReady

type RoundReady struct {
	Multiple int `json:"multiple"`
}

type ScoreInfo

type ScoreInfo struct {
	Uid   int64 `json:"acId"`
	Score int   `json:"score"`
}

type ShowCheck

type ShowCheck struct {
	Uid        int64  `json:"acId"`
	Open       int    `json:"open"`
	Call       int    `json:"call"`
	CalledDice string `json:"dcs"`
}

type ShowOpen

type ShowOpen struct {
	Uid        int64  `json:"acId"`
	CalledDice string `json:"dcs"`
}

type ShowWait

type ShowWait struct {
	Uid        int64  `json:"acId"`
	CalledDice string `json:"dcs"`
}

type StringMessage

type StringMessage struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type StringResponse

type StringResponse struct {
	Code int    `json:"code"` //状态码
	Data string `json:"data"` //字符串数据
}

type SyncDesk

type SyncDesk struct {
	Status      constant.DeskStatus `json:"status"` //1,2,3,4,5
	Players     []DeskPlayerData    `json:"players"`
	ScoreInfo   []ScoreInfo         `json:"scoreInfo"`
	MarkerUid   int64               `json:"markerAcId"`
	LastCallUid int64               `json:"lastCallAcId"`
}

type TableInfo

type TableInfo struct {
	DeskNo string              `json:"deskId"`
	Title  string              `json:"title"`
	Desc   string              `json:"desc"`
	Status constant.DeskStatus `json:"status"`
	Mode   int                 `json:"mode"`
}

type ThirdUserLoginRequest

type ThirdUserLoginRequest struct {
	Platform    string `json:"platform"`     //三方平台/渠道
	AppID       string `json:"appId"`        //用户来自于哪一个应用
	ChannelID   string `json:"channelId"`    //用户来自于哪一个渠道
	Device      Device `json:"device"`       //设备信息
	Name        string `json:"name"`         //微信平台名
	OpenID      string `json:"openid"`       //微信平台openid
	AccessToken string `json:"access_token"` //微信AccessToken
}

type UnCompleteDeskResponse

type UnCompleteDeskResponse struct {
	Exist     bool      `json:"exist"`
	TableInfo TableInfo `json:"tableInfo"`
}

type UpdateAppRequest

type UpdateAppRequest struct {
	Type            int                          `json:"type"`             //更新类型, 1为重新生成appkey/appsecret, 2为更新其他内容
	AppID           string                       `json:"appid"`            //应用ID
	Name            string                       `json:"name"`             //应用名
	RedirectURI     string                       `json:"redirect_uri"`     //回调地址
	Extra           string                       `json:"extra"`            //应用描述
	ThirdProperties map[string]map[string]string `json:"third_properties"` //第三方属性
}

type UserInfo

type UserInfo struct {
	UID         int64  `json:"uid"`
	Name        string `json:"name"`            //用户名, 可空,当非游客注册时用户名与手机号必须至少出现一项
	Phone       string `json:"phone"`           //手机号,可空
	Role        int    `json:"role"`            //玩家类型
	Status      int    `json:"status"`          //状态
	IsOnline    int    `json:"is_online"`       //是否在线
	LastLoginAt int64  `json:"last_login_time"` //最后登录时间
}

type UserInfoRequest

type UserInfoRequest struct {
	UID int64 `json:"uid"`
}

type UserInfoResponse

type UserInfoResponse struct {
	Code int      `json:"code"` //状态码
	Data UserInfo `json:"data"` //数据
}

type UserListRequest

type UserListRequest struct {
	Offset int `json:"offset"`
	Count  int `json:"count"`
}

type UserListResponse

type UserListResponse struct {
	Code  int        `json:"code"`  //状态码
	Data  []UserInfo `json:"users"` //用户列表
	Total int        `json:"total"`
}

type UserLoginResponse

type UserLoginResponse struct {
	Code int32     `json:"code"` //状态码
	Data LoginInfo `json:"data"`
}

type UserStatsInfo

type UserStatsInfo struct {
	ID             int64  `json:"id"`
	Uid            int64  `json:"uid"`
	Name           string `json:"name"`
	RegisterAt     int64  `json:"register_at"`
	RegisterIP     string `json:"register_ip"`
	LastestLoginAt int64  `json:"lastest_login_at"`
	LastestLoginIP string `json:"lastest_login_ip"`

	TotalMatch int64 `json:"total_match"` //总对局数
	RemainCard int64 `json:"remain_card"` //剩余房卡

	StatsAt []int64               //统计时间
	Stats   map[int64]*DailyStats //时间对应的数据
}

type UserStatsInfoListRequest

type UserStatsInfoListRequest struct {
	RoleTypes []uint8 `json:"role_types"`
	Account   string  `json:"account"`
}

用户统计信息列表

type UserStatsInfoListResponse

type UserStatsInfoListResponse struct {
	Code  int        `json:"code"`  //状态码
	Data  []UserInfo `json:"users"` //用户列表
	Total int        `json:"total"`
}

type UserStatsSummary

type UserStatsSummary struct {
	Name      string `json:"name"`       //名字
	Uid       int64  `json:"uid"`        //uid
	Role      byte   `json:"role"`       //角色
	AppID     string `json:"app_id"`     //appid
	ChannelID string `json:"channel_id"` //channel id

	OS      string `json:"os"`
	IP      string `json:"ip"`       //最后登录ip
	Device  string `json:"deivce"`   //最后登录设备
	LoginAt int64  `json:"login_at"` //最后登录时间

	RegisterAt    int64 `json:"register_at"`    //注册时间
	LoginNum      int64 `json:"login_num"`      //登录次数
	RechargeNum   int64 `json:"recharge_num"`   //充值次数
	RechargeTotal int64 `json:"total_recharge"` //充值总金额
}

type UserStatsSummaryRequest

type UserStatsSummaryRequest struct {
	AppIds     []string `json:"app_ids"`
	ChannelIds []string `json:"channel_ids"`
	Role       byte     `json:"role"` //账号类型
	Uid        int64    `json:"uid"`
	Start      int64    `json:"start"` //注册起始时间
	End        int64    `json:"end"`   //注册结束时间
	SortBy     byte     `json:"sort_by"`
}

type UserStatsSummaryResponse

type UserStatsSummaryResponse struct {
	Code  int                 `json:"code"` //状态码
	Data  []*UserStatsSummary `json:"data"`
	Total int                 `json:"total"` //总数量
}

type Version

type Version struct {
	Version int    `json:"version"`
	Android string `json:"android"`
	IOS     string `json:"ios"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL