github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/msg/login.go (about) 1 package msg 2 3 type C2S_WeChatLogin struct { 4 Nickname string 5 Headimgurl string 6 Sex int // 1为男性,2为女性 7 Serial string // 安卓设备硬件序列号,例如:a1113028 8 Model string // 安卓手机型号,例如:MI NOTE Pro 9 UnionID string // 微信unionid 10 Channel int //渠道号。0:圈圈 1:搜狗 2:IOS 3:GooglePlay 11 } 12 13 type C2S_TokenLogin struct { 14 Token string 15 } 16 17 type C2S_UsernamePasswordLogin struct { 18 Username string 19 Password string 20 } 21 22 // Close 23 const ( 24 S2C_Close_LoginRepeated = 1 // 您的账号在其他设备上线,非本人操作请注意修改密码 25 S2C_Close_InnerError = 2 // 登录出错,请重新登录 26 S2C_Close_TokenInvalid = 3 // 登录状态失效,请重新登录 27 S2C_Close_UnionIDInvalid = 4 // 登录出错,微信ID无效 28 S2C_Close_UsernameInvalid = 5 // 登录出错,用户名无效 29 S2C_Close_SystemOff = 6 // 系统升级维护中,请稍后重试 30 S2C_Close_RoleBlack = 7 // 账号已冻结,请联系客服微信 S2C_Close.WeChatNumber 31 S2C_Close_IPChanged = 8 // 登录IP发生变化,非本人操作请注意修改密码 32 ) 33 34 type S2C_Close struct { 35 Error int 36 WeChatNumber string 37 } 38 39 type S2C_Login struct { 40 AccountID int 41 Nickname string 42 Headimgurl string 43 Sex int // 1 男、2 女 44 Role int // 1 玩家、2 代理、3 管理员、4 超管 45 Token string 46 AnotherLogin bool // 其他设备登录 47 AnotherRoom bool // 在其他房间 48 FirstLogin bool // 首次登录 49 Radio string // 广播 50 Parentid int64 // 上级ID 51 WeChatNumber string // 客服微信号 52 CardCode string // 取牌码 53 Taken bool // 已领取或未领取 54 CardCodeDesc string // 取牌码的描述 55 PlayTimes int // 当天游戏次数 56 Total int // 取牌码任务总次数 57 GivenChips int // 绑定赠送的金币数量 58 FirstLoginChips int // 首次登录送的金币 59 } 60 61 type C2S_SetUsernamePassword struct { 62 Username string 63 Password string 64 } 65 66 type C2S_GetUserChips struct{} 67 68 type S2C_UpdateUserChips struct { 69 Chips int64 70 } 71 72 type ( 73 S2C_OfferSubsidy struct { // 发放补助 74 Chips int64 75 } 76 ) 77 type C2S_GetCardMa struct { 78 } 79 type S2C_CardMa struct { 80 Code string // 取牌码 81 Total int // 总进度 82 PlayTimes int // 已完成进度 83 Completed bool // true表示去复制,显示取牌码 84 }