user.go 4.7 KB

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