user.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package model
  2. import "go-common/library/time"
  3. // UserBase user base.
  4. type UserBase struct {
  5. Mid int64 `json:"mid"`
  6. UserID string `json:"userid"`
  7. Pwd []byte `json:"pwd"`
  8. Salt string `json:"salt"`
  9. Status int8 `json:"status"`
  10. Deleted int8 `json:"deleted"`
  11. CTime time.Time `json:"ctime"`
  12. MTime time.Time `json:"mtime"`
  13. }
  14. // UserEmail user email.
  15. type UserEmail struct {
  16. Mid int64 `json:"mid"`
  17. Email []byte `json:"email"`
  18. Verified int8 `json:"verified"`
  19. EmailBindTime int64 `json:"email_bind_time"`
  20. CTime time.Time `json:"ctime"`
  21. MTime time.Time `json:"mtime"`
  22. }
  23. // UserTel user tel.
  24. type UserTel struct {
  25. Mid int64 `json:"mid"`
  26. Tel []byte `json:"tel"`
  27. Cid string `json:"cid"`
  28. TelBindTime int64 `json:"tel_bind_time"`
  29. CTime time.Time `json:"ctime"`
  30. MTime time.Time `json:"mtime"`
  31. }
  32. // UserRegOrigin user reg origin.
  33. type UserRegOrigin struct {
  34. Mid int64 `json:"mid"`
  35. JoinIP int64 `json:"join_ip"`
  36. JoinTime int64 `json:"join_time"`
  37. Origin int8 `json:"origin"`
  38. RegType int8 `json:"reg_type"`
  39. AppID int64 `json:"appid"`
  40. CTime time.Time `json:"ctime"`
  41. MTime time.Time `json:"mtime"`
  42. }
  43. // UserSafeQuestion user safe question.
  44. type UserSafeQuestion struct {
  45. Mid int64 `json:"mid"`
  46. SafeQuestion int8 `json:"safe_question"`
  47. SafeAnswer []byte `json:"safe_answer"`
  48. SafeBindTime int64 `json:"safe_bind_time"`
  49. CTime time.Time `json:"ctime"`
  50. MTime time.Time `json:"mtime"`
  51. }
  52. // UserThirdBind user third bind.
  53. type UserThirdBind struct {
  54. ID int64 `json:"id"`
  55. Mid int64 `json:"mid"`
  56. OpenID string `json:"openid"`
  57. PlatForm int64 `json:"platform"`
  58. Token string `json:"token"`
  59. Expires int64 `json:"expires"`
  60. CTime time.Time `json:"ctime"`
  61. MTime time.Time `json:"mtime"`
  62. }
  63. // UserTelDuplicate user tel duplicate.
  64. type UserTelDuplicate struct {
  65. ID int64 `json:"id"`
  66. Mid int64 `json:"mid"`
  67. Tel []byte `json:"tel"`
  68. Cid string `json:"cid"`
  69. TelBindTime int64 `json:"tel_bind_time"`
  70. Status int8 `json:"status"`
  71. Timestamp int64 `json:"ts"`
  72. }
  73. // UserEmailDuplicate user email duplicate.
  74. type UserEmailDuplicate struct {
  75. ID int64 `json:"id"`
  76. Mid int64 `json:"mid"`
  77. Email []byte `json:"email"`
  78. Verified int32 `json:"verified"`
  79. EmailBindTime int64 `json:"email_bind_time"`
  80. Status int8 `json:"status"`
  81. Timestamp int64 `json:"ts"`
  82. }