protocol

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

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 2 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 (
	FanPaiStepK91 = 0
	FanPaiStepK61 = 1
	FanPaiStepK41 = 2
	FanPaiStepK31 = 3
	FanPaiStepK21 = 4
)
View Source
const (
	FanPaiStatusKNotOpen1      = 0
	FanPaiStatusKOpenFailed1   = 1
	FanPaiStatusKOpenSuccessY1 = 2
	FanPaiStatusKOpenSuccessN1 = 3
	FanPaiStatusKNotOpen2      = 4
	FanPaiStatusKOpenFailed2   = 5
	FanPaiStatusKOpenSuccessY2 = 6
	FanPaiStatusKOpenSuccessN2 = 7
)
View Source
const (
	OptypeIllegal = 0
	OptypeChu     = 1
	OptypePeng    = 2
	OptypeGang    = 3
	OptypeHu      = 4
	OptypePass    = 5

	OptyMoPai = 500 //摸牌
	//以下三种杠的分类主要用以解决上面的 OptypeGang分类不细致,导致抢杠等操作处理麻烦的问题
	//在判定时必须满足两条件 x % 10 == 4 && x >1000
	OptypeAnGang   = 1004
	OptypeMingGang = 1014
	OptypeBaGang   = 1024
)

OpType

View Source
const (
	FanXingQingYiSe      = 1  // "清一色"
	FanXingQingQiDui     = 2  // "清七对"
	FanXingQingDaDui     = 3  // "清大对"
	FanXingQingDaiYao    = 4  // "清带幺"
	FanXingQingJiangDui  = 5  // "清将对"
	FanXingSuFan         = 6  // "素番"
	FanXingQiDui         = 7  // "七对"
	FanXingDaDui         = 8  // "大对子"
	FanXingQuanDaiYao    = 9  // "全带幺"
	FanXingJiangDui      = 10 // "将对"
	FanXingYaoJiuQiDui   = 11 // "幺九七对"
	FanXingQingLongQiDui = 12 // "清龙七对"
	FanXingLongQiDui     = 13 // "龙七对"
)

番型

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 ApplyClubRequest

type ApplyClubRequest struct {
	ClubId int64 `json:"clubId"`
}

type ApplyForDailyMatchRequest

type ApplyForDailyMatchRequest struct {
	Arg1           int `json:"arg1"`
	DailyMatchType int `json:"dailyMatchType"`
	Multiple       int `json:"multiple"`
}

type BalanceListRequest

type BalanceListRequest struct {
	Uids []string `json:"uids"` //uid列表
}

type BalanceListResponse

type BalanceListResponse struct {
	Code int               `json:"code"` //状态码
	Data map[string]string `json:"data"` //渠道列表
}

type BashiCoinOpRequest

type BashiCoinOpRequest struct {
	Op   int `json:"op"`
	Coin int `json:"coin"`
}

type BeHuInfo

type BeHuInfo struct {
	AccountID int   `json:"acid"`
	FanShu    int   `json:"fanshu"`
	Coin      int64 `json:"coin"`
}

type CalcLastTingRequest

type CalcLastTingRequest struct {
	KouIndexs  []int `json:"kou"`
	TingIndexs []int `json:"ting"`
}

type CalcLastTingResponse

type CalcLastTingResponse struct {
	ForbidIndexs []int `json:"forbid"`
	Tings        Tings `json:"tings"`
}

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 CheckOrderReqeust

type CheckOrderReqeust struct {
	OrderID string `json:"orderid"`
}

type CheckOrderResponse

type CheckOrderResponse struct {
	Code   int    `json:"code"`
	Error  string `json:"error"`
	FangKa int    `json:"fangka"`
}

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 ClubItem

type ClubItem struct {
	Id        int64  `json:"id"`
	Name      string `json:"name"`
	Desc      string `json:"desc"`
	Member    int    `json:"member"`
	MaxMember int    `json:"maxMember"`
}

type ClubListResponse

type ClubListResponse struct {
	Code int        `json:"code"`
	Data []ClubItem `json:"data"`
}

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 CreateOrderByAdminRequest

type CreateOrderByAdminRequest struct {
	AppID     string `json:"appid"`      //来自哪个应用的订单
	ChannelID string `json:"channel_id"` //来自哪个渠道的订单
	Extra     string `json:"extra"`      //描述信息
	Operator  string `json:"operator"`   //管理员账号
	Money     int    `json:"money"`      //金额
	Uid       int64  `json:"uid"`        //用户ID
	Device    Device `json:"device"`     //设备信息
}

type CreateOrderRequest

type CreateOrderRequest struct {
	AppID          string //来自哪个应用的订单
	ChannelID      string //来自哪个渠道的订单
	Platform       string //支付平台
	ProductionName string
	ProductCount   int    //房卡数量
	Extra          string //描述信息
	Device         Device //设备信息
	Uid            int64  //Token
}

type CreateOrderSnakeResponse

type CreateOrderSnakeResponse struct {
	Result      string `json:"result"`
	PayPlatform string `json:"pay_platform"`
}

type CreateOrderWechatReponse

type CreateOrderWechatReponse struct {
	AppID     string `json:"appid"`
	PartnerId string `json:"partnerid"`
	OrderId   string `json:"orderid"`
	PrePayID  string `json:"prepayid"`
	NonceStr  string `json:"noncestr"`
	Sign      string `json:"sign"`
	Timestamp string `json:"timestamp"`
	Extra     string `json:"extData"`
}

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 DeleteHistoryRequest

type DeleteHistoryRequest struct {
	ID string `json:"id"` //历史ID
}

type DeleteUserRequest

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

type Desk

type Desk struct {
	Id           int64  `json:"id"`
	Creator      int64  `json:"creator"`
	Round        int    `json:"round"`
	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"`
	PlayerName0  string `json:"player_name0"`
	PlayerName1  string `json:"player_name1"`
	PlayerName2  string `json:"player_name2"`
	PlayerName3  string `json:"player_name3"`
	ScoreChange0 int    `json:"score_change0"`
	ScoreChange1 int    `json:"score_change1"`
	ScoreChange2 int    `json:"score_change2"`
	ScoreChange3 int    `json:"score_change3"`
	CreatedAt    int64  `json:"created_at"`
	CreatedAtStr string `json:"created_at_str"`
	DismissAt    int64  `json:"dismiss_at"`
	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"`
	MaxRound int `json:"round"`
	MaxFan   int `json:"maxFan"`

	Zimo string `json:"zimo"`

	// 玩法
	Menqing  bool `json:"menqing"`  // 门清中张
	Jiangdui bool `json:"jiangdui"` // 幺九将对
	Jiaxin   bool `json:"jiaxin"`   // 夹心五
	Pengpeng bool `json:"pengpeng"` // 碰碰胡两番
	Pinghu   bool `json:"pinghu"`   // 点炮可平胡
	Yaojiu   bool `json:"yaojiu"`   // 全幺九
}

type DeskPlayerData

type DeskPlayerData struct {
	Uid        int64 `json:"acId"`
	HandTiles  []int `json:"shouPaiIds"`
	ChuTiles   []int `json:"chuPaiIds"`
	PGTiles    []int `json:"gangInfos"`
	LatestTile int   `json:"lastTile"`
	IsHu       bool  `json:"isHu"`
	HuPai      int   `json:"huPai"`
	HuType     int   `json:"huType"`
	Que        int   `json:"que"`
	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 DingQue

type DingQue struct {
	Que int `json:"que"`
}

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 DuanPai

type DuanPai struct {
	MarkerID    int64         `json:"markerId"` //庄家
	Dice1       int           `json:"dice1"`
	Dice2       int           `json:"dice2"`
	AccountInfo []DuanPaiInfo `json:"accountInfo"`
}

type DuanPaiInfo

type DuanPaiInfo struct {
	Uid    int64 `json:"acId"`
	OnHand []int `json:"mjs"`
}

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 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 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 FanPaiRequest

type FanPaiRequest struct {
	Pos        int  `json:"pos"`
	IsUseCoin  bool `json:"isUseCoin"`
	IsMultiple bool `json:"isMultiple"`
	OpType     int  `json:"opType"`
}

type GameEndScoreChange

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

type GangPaiScoreChange

type GangPaiScoreChange struct {
	IsXiaYu bool        `json:"isXiaYu"`
	Changes []ScoreInfo `json:"changes"`
}

type GetRankInfoRequest

type GetRankInfoRequest struct {
	IsSelf bool `json:"isself"`
	Start  int  `json:"start"`
	Len    int  `json:"len"`
}

type HandTilesInfo

type HandTilesInfo struct {
	Uid    int64 `json:"acId"`
	Tiles  []int `json:"shouPai"`
	HuPai  int   `json:"huPai"`
	IsTing bool  `json:"isTing"`
}

type Hint

type Hint struct {
	Ops   Ops   `json:"ops"`
	Tings Tings `json:"tings"`
	Uid   int64 `json:"uid"`
}

提示

func (*Hint) String

func (h *Hint) String() string

type History

type History struct {
	HistoryLite
	Snapshot string `json:"snapshot"`
}

type HistoryByIDRequest

type HistoryByIDRequest struct {
	ID int64 `json:"id"` //历史ID
}

type HistoryByIDResponse

type HistoryByIDResponse struct {
	Code int      `json:"code"`
	Data *History `json:"data"`
}

type HistoryListRequest

type HistoryListRequest struct {
	DeskID int64 `json:"desk_id"`
	Offset int   `json:"offset"`
	Count  int   `json:"count"`
}

type HistoryListResponse

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

type HistoryLite

type HistoryLite struct {
	Id           int64  `json:"id"`
	DeskId       int64  `json:"desk_id"`
	Mode         int    `json:"mode"`
	BeginAt      int64  `json:"begin_at"`
	BeginAtStr   string `json:"begin_at_str"`
	EndAt        int64  `json:"end_at"`
	PlayerName0  string `json:"player_name0"`
	PlayerName1  string `json:"player_name1"`
	PlayerName2  string `json:"player_name2"`
	PlayerName3  string `json:"player_name3"`
	ScoreChange0 int    `json:"score_change0"`
	ScoreChange1 int    `json:"score_change1"`
	ScoreChange2 int    `json:"score_change2"`
	ScoreChange3 int    `json:"score_change3"`
}

type HistoryLiteListRequest

type HistoryLiteListRequest struct {
	DeskID int64 `json:"desk_id"`
	Offset int   `json:"offset"`
	Count  int   `json:"count"`
}

type HistoryLiteListResponse

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

type HuInfo

type HuInfo struct {
	Uid           int64       `json:"acId"`
	HuPaiType     HuPaiType   `json:"huPaiType"`
	ScoreChange   []ScoreInfo `json:"scoreChange"`
	TotalWinScore int         `json:"totalWinScore"` //赢的所有输家的总分数
}

type HuPaiType

type HuPaiType int
const (
	HuTypeDianPao HuPaiType = iota
	HuTypeZiMo
	HuTypePei
)

type JQToCoinRequest

type JQToCoinRequest struct {
	Count int `json:"count"`
}

type JiangMa

type JiangMa struct {
	ID  int `json:"id"`
	Fan int `json:"fan"`
}

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 LiangDaoHintMessage

type LiangDaoHintMessage struct {
	AccountId int64 `json:"acid"`
	Tings     Tings `json:"tings"`
}

type LiangDaoMessage

type LiangDaoMessage struct {
	AccountId int64 `json:"acid"`
	HuIndexs  []int `json:"hu"`
	KouIndexs []int `json:"kou"`
}

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"`
	FangKa   int64        `json:"fangka"`
	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"`
	ClubList []ClubItem   `json:"clubList"`
	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]女
	FangKa  int    `json:"fangka"`
	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"`
	FangKa   int    `json:"fangka"`
}

type MailOperateRequest

type MailOperateRequest struct {
	MailIDs []int64 `json:"mailids"`
}

type MatchStats

type MatchStats struct {
	ZiMoNum     int    `json:"ziMo"`        //自摸次数
	HuNum       int    `json:"hu"`          //和数
	PaoNum      int    `json:"pao"`         //炮数
	AnGangNum   int    `json:"anGang"`      //暗杠数
	MingGangNum int    `json:"mingGang"`    //明杠数
	TotalScore  int    `json:"totalScore"`  //总分
	Uid         int64  `json:"uid"`         //id
	Account     string `json:"account"`     //名字
	IsPaoWang   bool   `json:"isPaoWang"`   //是否是炮王
	IsBigWinner bool   `json:"isBigWinner"` //是否是大赢家
	IsCreator   bool   `json:"isCreator"`   //是否是房主
}

type MingAction

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

type MoPai

type MoPai struct {
	AccountID int64 `json:"acId"`
	TileIDs   []int `json:"mjids"`
}

type None

type None struct{}

type ObtainBalanceReqeust

type ObtainBalanceReqeust struct {
	Token string `json:"token"`
}

type ObtainBalanceResponse

type ObtainBalanceResponse struct {
	Code int   `json:"code"`
	Data int64 `json:"data"`
}

type Op

type Op struct {
	Type    int   `json:"op"`
	TileIDs []int `json:"mjidxs"` //
}

type OpChooseRequest

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

type OpChoosed

type OpChoosed struct {
	Type   int
	TileID int
}

选择执行的动作

type OpTypeDo

type OpTypeDo struct {
	Uid     []int64 `json:"uid"`
	OpType  int     `json:"optype"`
	HuType  int     `json:"hutype"`
	TileIDs []int   `json:"mjs"`
}

type Ops

type Ops []Op

所有可执行的操作

type OrderByAdminListRequest

type OrderByAdminListRequest struct {
	Offset    int    `json:"offset"`
	Count     int    `json:"count"`
	Start     int64  `json:"start"` //时间起点
	End       int64  `json:"end"`   //时间终点
	Uid       int64  `json:"uid"`   //用户id
	OrderId   string `json:"order_id"`
	AppID     string `json:"appid"`      //来自哪个应用的订单
	ChannelID string `json:"channel_id"` //来自哪个渠道的订单
}

OrderByAdminListRequest 由管理员创建的订单列表

type OrderInfo

type OrderInfo struct {
	OrderId      string `json:"order_id"`      //订单号
	Uid          string `json:"uid"`           //接收者id
	AppId        string `json:"appid"`         //应用id
	ServerName   string `json:"server_name"`   //区服名
	RoleID       string `json:"role_id"`       //角色id
	Extra        string `json:"extra"`         //额外信息
	Imei         string `json:"imei"`          //imei
	ProductName  string `json:"product_name"`  //商品名
	PayBy        string `json:"pay_by"`        //收支类型: alipay, wechat ...
	ProductCount int    `json:"product_count"` //商品数量
	Money        int    `json:"money"`         //标价
	RealMoney    int    `json:"real_money"`    //实际售价
	Status       int    `json:"status"`        // 订单状态 1-创建 2-完成 3-游戏服务器已经确认
	CreatedAt    int64  `json:"created_at"`    //发放时间
}

type OrderListRequest

type OrderListRequest struct {
	Offset    int    `json:"offset"`
	Count     int    `json:"count"`
	Status    uint8  `json:"status"`
	Start     int64  `json:"start"` //时间起点
	End       int64  `json:"end"`   //时间终点
	PayBy     string `json:"pay_by"`
	Uid       string `json:"uid"`        //用户id
	OrderID   string `json:"order_id"`   //订单号
	AppID     string `json:"appid"`      //来自哪个应用的订单
	ChannelID string `json:"channel_id"` //来自哪个渠道的订单
}

OrderListRequest 订单列表

type OrderListResponse

type OrderListResponse struct {
	Code  int         `json:"code"`  //状态码
	Data  []OrderInfo `json:"data"`  //渠道列表
	Total int         `json:"total"` //总数量

}

type PayOrderListRequest

type PayOrderListRequest struct {
	Offset    int    `json:"offset"`
	Count     int    `json:"count"`
	Type      int    `json:"type"`       //查询类型: 1-购买代币 2-消费代币
	Start     int64  `json:"start"`      //时间起点
	End       int64  `json:"end"`        //时间终点
	Uid       int64  `json:"uid"`        //用户id
	OrderID   string `json:"order_id"`   //订单号
	AppID     string `json:"appid"`      //来自哪个应用的订单
	ChannelID string `json:"channel_id"` //来自哪个渠道的订单
}

PayOrderListRequest 由管理员创建的订单列表

type PayOrderListResponse

type PayOrderListResponse struct {
	Code  int                 `json:"code"`  //状态码
	Data  []SnakePayOrderInfo `json:"data"`  //渠道列表
	Total int                 `json:"total"` //总数量
}

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 QueItem

type QueItem struct {
	Uid int64 `json:"uid"`
	Que int   `json:"que"`
}

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 RechargeRequest

type RechargeRequest struct {
	Count int64 `json:"count"`
	Uid   int64 `json:"uid"`
}

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 RoundOverStats

type RoundOverStats struct {
	Title       string               `json:"title"`
	Round       string               `json:"round"`
	HandTiles   []*HandTilesInfo     `json:"tiles"`
	Stats       []*RoundStats        `json:"stats"`
	ScoreChange []GameEndScoreChange `json:"scoreChange"`
}

type RoundReady

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

type RoundStats

type RoundStats struct {
	FanNum     int    `json:"fanshu"`     //番数
	Feng       int    `json:"feng"`       //刮风
	Yu         int    `json:"yu"`         //下雨
	Total      int    `json:"total"`      //总分
	BannerType int    `json:"bannerType"` //显示[1]自摸,[2]胡,[3]点炮,[4]赔付图标
	Desc       string `json:"desc"`
}

type ScoreInfo

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

type SnakePayOrderInfo

type SnakePayOrderInfo struct {
	OrderId      string `json:"order_id"`      //订单号
	Uid          string `json:"uid"`           //接收者id
	ServerName   string `json:"server_name"`   //区服名
	RoleID       string `json:"role_id"`       //角色id
	AppId        string `json:"appid"`         //应用id
	ChannelId    string `json:"channel_id"`    //渠道id
	Extra        string `json:"extra"`         //额外信息
	Imei         string `json:"imei"`          //imei
	ProductName  string `json:"product_name"`  //商品名
	Type         int    `json:"type"`          //收支类型: 1-购买代币 2-消费代币
	Money        int    `json:"money"`         //标价
	RealMoney    int    `json:"real_money"`    //实际售价
	ProductCount int    `json:"product_count"` //商品数量
	Status       int    `json:"status"`        // 订单状态 1-创建 2-完成 3-游戏服务器已经确认

	CreatedAt int64 `json:"created_at"` //发放时间
}

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"`
	LastMoPaiUid  int64               `json:"lastMoPaiAcId"`
	RestCount     int                 `json:"restCnt"`
	Dice1         int                 `json:"dice1"`
	Dice2         int                 `json:"dice2"`
	Hint          *Hint               `json:"hint"`
	LastTileId    int                 `json:"lastChuPaiId"`
	LastChuPaiUid int64               `json:"lastChuPaiUid"`
}

type TableInfo

type TableInfo struct {
	DeskNo    string              `json:"deskId"`
	CreatedAt int64               `json:"createdAt"`
	Creator   int64               `json:"creator"`
	Title     string              `json:"title"`
	Desc      string              `json:"desc"`
	Status    constant.DeskStatus `json:"status"`
	Round     uint32              `json:"round"`
	Mode      int                 `json:"mode"`
}

type TestMessage

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

type TestRequest

type TestRequest struct {
	IntField    int    `json:"int_field"`
	StringField string `json:"string_field"`
}

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 Ting

type Ting struct {
	Index int   `json:"index"`
	Hu    []int `json:"hu"`
}

听牌信息

type Tings

type Tings []Ting

所有被听的牌

type TradeInfo

type TradeInfo struct {
	OrderId        string `json:"order_id"`         //订单号
	Uid            string `json:"uid"`              //snake uid
	PayPlatformUid string `json:"pay_platform_uid"` //支付平台uid
	AppId          string `json:"appid"`            //应用id
	ChannelId      string `json:"channel_id"`       //渠道id
	ProductName    string `json:"product_name"`     //商品名
	PayBy          string `json:"pay_by"`           //收支类型: alipay, wechat ...
	ServerName     string `json:"server_name"`
	RoleName       string `json:"role_name"`
	RoleId         string `json:"role_id"`
	Currency       string `json:"currency"`
	ProductCount   int    `json:"product_count"` //商品数量
	Money          int    `json:"money"`         //标价
	RealMoney      int    `json:"real_money"`    //实际售价
	PayAt          int64  `json:"pay_at"`        //支付时间

}

type TradeListRequest

type TradeListRequest struct {
	Offset    int    `json:"offset"`
	Count     int    `json:"count"`
	Start     int64  `json:"start"`      //时间起点
	End       int64  `json:"end"`        //时间终点
	OrderID   string `json:"order_id"`   //订单号
	AppID     string `json:"appid"`      //来自哪个应用的订单
	ChannelID string `json:"channel_id"` //来自哪个渠道的订单
}

TradeListRequest 交易列表

type TradeListResponse

type TradeListResponse struct {
	Code  int         `json:"code"`  //状态码
	Data  []TradeInfo `json:"data"`  //渠道列表
	Total int         `json:"total"` //总数量

}

type UnCompleteDeskResponse

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

type UnifyOrderCallbackRequest

type UnifyOrderCallbackRequest struct {
	PayPlatform string
	RawRequest  interface{}
}

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"`
}

type WechatOrderCallbackRequest

type WechatOrderCallbackRequest struct {
	ReturnMsg        string `xml:"return_msg,omitempty"`
	DeviceInfo       string `xml:"device_info,omitempty"`
	ErrCode          string `xml:"err_code,omitempty"`
	ErrCodeDes       string `xml:"err_code_des,omitempty"`
	Attach           string `xml:"attach,omitempty"`
	CashFeeType      string `xml:"cash_fee_type,omitempty"`
	CouponFee        int    `xml:"coupon_fee,omitempty"`
	CouponCount      int    `xml:"coupon_count,omitempty"`
	CouponIDDollarN  string `xml:"coupon_id_$n,omitempty"`
	CouponFeeDollarN string `xml:"coupon_fee_$n,omitempty"`

	ReturnCode    string `xml:"return_code"`
	Appid         string `xml:"appid"`
	MchID         string `xml:"mch_id"`
	Nonce         string `xml:"nonce_str"`
	Sign          string `xml:"sign"`
	ResultCode    string `xml:"result_code"`
	Openid        string `xml:"openid"`
	IsSubscribe   string `xml:"is_subscribe"`
	TradeType     string `xml:"trade_type"`
	BankType      string `xml:"bank_type"`
	TotalFee      int    `xml:"total_fee"`
	FeeType       string `xml:"fee_type"`
	CashFee       int    `xml:"cash_fee"`
	TransactionID string `xml:"transaction_id"`
	OutTradeNo    string `xml:"out_trade_no"`
	TimeEnd       string `xml:"time_end"`

	Raw string
}

type WechatOrderCallbackResponse

type WechatOrderCallbackResponse struct {
	ReturnCode string `xml:"return_code,cdata"`
	ReturnMsg  string `xml:"return_msg,cdata"`
}

Jump to

Keyboard shortcuts

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