user.go 4.0 KB

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