app_info.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package model
  2. import xtime "go-common/library/time"
  3. // const .
  4. const (
  5. UpNameLogID = 14
  6. UpNameAction = "log_name_update"
  7. )
  8. // Account account.
  9. type Account struct {
  10. Mid int64 `json:"mid"`
  11. Uname string `json:"uname"`
  12. Face string `json:"face"`
  13. Sex int8 `json:"sex"`
  14. Birthday string `json:"birthday"`
  15. Sign string `json:"sign"`
  16. NickFree bool `json:"nick_free"`
  17. }
  18. // NickFree nickFree.
  19. type NickFree struct {
  20. NickFree bool `json:"nick_free"`
  21. }
  22. // PassportProfile is
  23. /*
  24. "mid": 288840748,
  25. "uname": "小学生pasami",
  26. "userid": "bili_43796499903",
  27. "telphone": "9028005779",
  28. "nickLock": 0,
  29. "bind_qq": false,
  30. "bind_sina": true,
  31. "spacesta": 2,
  32. "login_time": 1529165291,
  33. "login_ip": "103.228.109.204",
  34. "join_ip": "119.135.161.112",
  35. "join_time": 1518286685,
  36. "safe_question": 0,
  37. "country_code": 1
  38. */
  39. type PassportProfile struct {
  40. Mid int64 `json:"mid"`
  41. UName string `json:"uname"`
  42. UserID string `json:"user_id"`
  43. Telphone string `json:"telphone"`
  44. NickLock int `json:"nick_lock"`
  45. BindQQ bool `json:"bind_qq"`
  46. BindSina bool `json:"bind_sina"`
  47. SpaceSta int `json:"spacesta"`
  48. LoginTime xtime.Time `json:"login_time"`
  49. LoginIP string `json:"login_ip"`
  50. JoinIP string `json:"join_ip"`
  51. JoinTime xtime.Time `json:"join_time"`
  52. SafeQuestion int `json:"safe_question"`
  53. CountryCode int64 `json:"country_code"`
  54. }