golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user_info.go 1.2 KiB

6 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package md
  2. import (
  3. "applet/app/db/model"
  4. "applet/app/lib/arkid"
  5. )
  6. type UserInfoResponse struct {
  7. Avatar string `json:"avatar"`
  8. NickName string `json:"nickname"`
  9. Gender string `json:"gender"`
  10. Birthday string `json:"birthday"`
  11. RegisterTime string `json:"register_time"`
  12. FileBucketURL string `json:"file_bucket_url"`
  13. FileFormat string `json:"file_format"`
  14. IsNoChange string `json:"is_no_change"`
  15. IsUpLoadWx string `json:"is_upload_wx"`
  16. IsShowDelUserBtn string `json:"is_show_del_user_btn"`
  17. IsShowQq string `json:"is_show_qq"`
  18. IsShowSalePhone string `json:"is_show_sale_phone"`
  19. IsShowWallet string `json:"is_show_wallet"`
  20. IsShowBankCard string `json:"is_show_bank_card"`
  21. Qq string `json:"qq"`
  22. SalePhone string `json:"sale_phone"`
  23. LevelName string `json:"level_name"`
  24. Phone string `json:"phone"`
  25. }
  26. type User struct {
  27. Ark *arkid.ArkIDUser
  28. Info *model.User
  29. Profile *model.UserProfile
  30. Level *model.UserLevel
  31. Tags []string
  32. }
  33. type UserRelation struct {
  34. Uid int
  35. CurUid int
  36. Diff int // 与当前用户级别差
  37. Level int // 用户当前等级
  38. OldDiff int // 旧的级别
  39. }