syntax = "v1" info ( title: "room实例" desc: "room实例" author: "davy" email: "macxiaohai@gmail.com" ) type Room { Rid int32 `json:"rid"` RoomNumber string `json:"roomNumber"` // 给玩家展示的房间号 State uint8 `json:"state"` //房间状态 0默认可用 1不可用 RoomName string `json:"roomName"` //房间名字 CreatedAt uint32 `json:"createdAt"` //创建时间 OriginalOwnerID uint32 `json:"originalOwnerID"` //原始创建人的信息 Owner uint32 `json:"owner"` //房管 Kind uint32 `json:"kinds"` //游戏类型 即玩法 DraginChips uint32 `json:"draginChips"` // 带入筹码 Cap uint8 `json:"cap"` MaxCap uint8 `json:"maxCap"` } type ( RoomListReq {} RoomListResp { Room []*Room `json:"room"` } ) type ( StandUpReq { Uid int32 `json:"uid"` } StandUpResp {} ) type ( SitDownReq { Uid int32 `json:"uid"` Pos uint8 `json:"pos"` } SitDownResp {} ) type ( LeaveRoomReq { RoomNumber string `json:"roomNumber"` Uid uint32 `json:"uid"` } LeaveRoomResp {} ) type ( JoinRoomReq { Uid int32 `json:"uid"` RoomNumber string `json:"roomNumber"` RoomPwd string `json:"roomPwd"` } ) type ( RoomInfoReq {} RoomInfoResp { RoomNumber int64 `json:"roomNumber"` Volume uint8 `json:"volume"` GameType uint32 `json:"gameType"` //游戏类型 即玩法 PayValue uint8 `json:"payValue"` //倍数 BaseMoney uint32 `json:"baseMoney"` //最低资本 才能进房间 RoomPwd string `json:"roomPwd"` //房间锁--密码 RoomID uint32 `json:"roomID"` SB uint32 `json:"SB"` // 小盲注 BB uint32 `json:"BB"` // 大盲注 Cards []byte `json:"cards"` //公共牌 Pot []uint32 `json:"pot"` // 当前奖池筹码数 Timeout uint8 `json:"timeout"` // 倒计时超时时间(秒) Button uint8 `json:"button"` // 当前庄家座位号,从1开始 Chips []uint32 `json:"chips"` // 玩家本局下注的总筹码数,与occupants一一对应 Bet uint32 `json:"bet"` // 当前下注额 Max uint8 `json:"max"` // 房间最大玩家人数 MaxChips uint32 `json:"maxChips"` MinChips uint32 `json:"minChips"` } )