user.go 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package entity
  2. type UserCountResp struct {
  3. TotalReg int64 `json:"total_reg"`
  4. ToDayReg int64 `json:"today_reg"`
  5. }
  6. type UserListResp struct {
  7. UserName string `json:"userName" bson:"userName"` // 用户名
  8. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  9. UserNameMaybe string `json:"userNameMaybe" bson:"userNameMaybe"` // 昵称
  10. NickName string `json:"nickName" bson:"nickName"` // 昵称
  11. Pid string `json:"pid" bson:"pid"` // 上级ID
  12. XID string `json:"xID" bson:"xID"` // 绑定推特ID
  13. TonWall string `json:"tonWall" bson:"tonWall"` // 绑定钱包地址
  14. Email string `json:"email" bson:"email"` // 邮箱
  15. Mobile string `json:"mobile" bson:"mobile"` // 手机号
  16. Avatar string `json:"avatar" bson:"avatar"` // 头像
  17. IsCashOut int `json:"-" bson:"IsCashOut"` // 服务器判断是否有提现的数据 0 否 1是
  18. IsRobot int `json:"isRobot" bson:"isRobot"` // 是否为机器人
  19. IsLeader int `json:"isLeader" bson:"isLeader"` // 是否是社区长
  20. IsVip int `json:"isVip" bson:"isVip"` // 是否为VIP
  21. IsFirstBindingXID int `json:"isFirstBindingXID" bson:"isFirstBindingXID"` // 是否是第一次绑定推特
  22. Level int `json:"level" bson:"level"` // 等级
  23. Exp int `json:"exp" bson:"exp"` // 经验
  24. Gender int `json:"gender" bson:"gender"` // 性别
  25. Birthday string `json:"birthday" bson:"birthday"` // 生日
  26. Successions int `json:"successions" bson:"successions"` // 连续登陆天数
  27. MaxSuccessions int `json:"maxSuccessions" bson:"maxSuccessions"` // 最大连续等级天数
  28. PrevTime int64 `json:"prevTime" bson:"prevTime"` // 上次登陆时间
  29. LoginTime int64 `json:"loginTime" bson:"loginTime"` // 登陆时间
  30. LoginIP string `json:"loginIP" bson:"loginIP"` // 登录IP
  31. LoginFailure int `json:"loginFailure" bson:"loginFailure"` // 登陆失败次数
  32. JoinIP string `json:"joinIP" bson:"joinIP"` // 注册IP
  33. Rank int `json:"rank" bson:"rank"` // 排名
  34. JoinTime int64 `json:"joinTime" bson:"joinTime"` // 注册时间
  35. CreateTime int64 `json:"createTime" bson:"createTime"` // 创建时间
  36. UpdateTime int64 `json:"updateTime" bson:"updateTime"` // 更新时间
  37. DailyRefreshTime int64 `json:"dailyRefreshTime" bson:"dailyRefreshTime"` // 每日刷新时间
  38. HourRefreshTime int64 `json:"hourRefreshTime" bson:"hourRefreshTime"` // 每小时更新
  39. WeeklyRefreshTime int64 `json:"weeklyRefreshTime" bson:"weeklyRefreshTime"` // 每周刷新时间
  40. RollDay int64 `json:"rollDay" bson:"rollDay"` // 抽奖日期
  41. Status int `json:"status" bson:"status"` // 状态
  42. }