user.go 4.4 KB

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