const.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package user
  2. import (
  3. badge "bet24.com/servers/micros/badge/proto"
  4. userservices "bet24.com/servers/micros/userservices/proto"
  5. )
  6. const (
  7. UserStatus_NotLogin = iota // 还没发送登陆
  8. UserStatus_Free // 已登录
  9. UserStatus_Sit
  10. UserStatus_Ready
  11. UserStatus_Play
  12. UserStatus_Watch
  13. UserStatus_Offline
  14. )
  15. type UserInfo_Base struct {
  16. UserId int
  17. Gold int
  18. Vip int
  19. NickName string
  20. FaceUrl string
  21. FaceId int
  22. Sex int
  23. UserWords string
  24. Chip int // 筹码
  25. Decorations []userservices.UserDecoration
  26. Charm int // 魅力值
  27. Level int
  28. VipExpire int
  29. Badges []badge.BadgePosition // 徽章
  30. YyfUid int // 语聊房uid
  31. YyfFaceId string // 语聊房uid
  32. YyfName string // 语聊房昵称
  33. YyfGold int //语聊房金币
  34. }
  35. // 发给自己的登录信息
  36. type UserInfo_Login struct {
  37. UserInfo_Base
  38. BankAmount int
  39. Session string
  40. PayAmount float64
  41. Code int
  42. IsGuest int
  43. TeacherId int
  44. HigherUserID int
  45. Grade int
  46. ChipBank int // 筹码保险柜
  47. ChipSend int // 筹码赠送
  48. Experience int // 人物经验
  49. LoginAward int // 元宝大厅登录奖励(0=无效 1=可领取 2=已领取)
  50. IsWhite int // 是否白名单(赠送功能是否展示 true=展示 其他隐藏)
  51. AutoLoginChip int // 是否自动登录元宝大厅
  52. MailVipTip bool // 重要邮件提醒
  53. IsRegister bool // 是否新注册用户
  54. Currency string // 币种
  55. CurrencyIsModify int // 币种是否允许修改
  56. VipPoint int
  57. }
  58. // 广播给其他人的游戏信息
  59. type UserInfo_Table struct {
  60. UserInfo_Base
  61. Status int
  62. TableId int
  63. ChairId int
  64. }