model.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package models
  2. import "database/sql"
  3. type Openid struct {
  4. Uid int `json:"uid"`
  5. PublicId string `json:"public_id"`
  6. Openid string `json:"openid"`
  7. Subscribe int `json:"subscribe"`
  8. }
  9. type AuthKey struct {
  10. Uid int `json:"uid"`
  11. AuthKey string `json:"auth_key"`
  12. AuthType string `json:"auth_type"`
  13. }
  14. type User struct {
  15. Uid int `json:"uid"`
  16. LoginAt int `json:"login_at"`
  17. School string `json:"school"`
  18. Sxo int `json:"sxo"`
  19. Age string `json:"age"`
  20. Address string `json:"address"`
  21. SupvipEndat int `json:"supvip_endat"`
  22. LoginAppPlatform string `json:"login_app_platform"`
  23. }
  24. type Partner struct {
  25. Id int `json:"id"`
  26. Uid int `json:"uid"`
  27. Home string `json:"home"`
  28. Address string `json:"address"`
  29. Sex int `json:"sex"`
  30. PhotoSrc sql.NullString `json:"photo_src"`
  31. Photo1 sql.NullString `json:"photo_1"`
  32. Photo2 sql.NullString `json:"photo_2"`
  33. Photo3 sql.NullString `json:"photo_3"`
  34. Photo4 sql.NullString `json:"photo_4"`
  35. Voice sql.NullString `json:"voice"`
  36. School string `json:"school"`
  37. Age string `json:"age"`
  38. Introduce string `json:"introduce"`
  39. Expect string `json:"expect"`
  40. Praises int `json:"praises"`
  41. FeedCnt int `json:"feed_cnt"`
  42. LastThreeDayFeed int `json:"last_three_day_feed"`
  43. FeedPushType int `json:"feed_push_type"`
  44. IsPushFeed int `json:"is_push_feed"`
  45. IsSelf int `json:"is_self"`
  46. CreatedAt int `json:"created_at"`
  47. UpdateAt int `json:"update_at"`
  48. UploadAt int `json:"upload"`
  49. FeedTagCnt int `json:"feed_tag_cnt"`
  50. FeedTagLike int `json:"feed_tag_like"`
  51. FeedPoolLevel string `json:"feed_pool_level"`
  52. WaitSelect int `json:"wait_select"`
  53. IsSelect int `json:"is_select"`
  54. }
  55. type NoticeManage struct {
  56. Uid int `json:"uid"`
  57. Key string `json:"key"`
  58. Group string `json:"group"`
  59. IsOpen int `json:"is_open"`
  60. }
  61. type PopularitySharehelp struct {
  62. Id int `json:"id"`
  63. CreatedAt int `json:"created_at"`
  64. ShareUid int `json:"share_uid"`
  65. HelpUid int `json:"help_uid"`
  66. EndAt int `json:"end_at"`
  67. HelpuidType int `json:"helpuid_type"`
  68. }
  69. type UserSystag struct {
  70. Uid int `json:"uid"`
  71. SupvipDats int `json:"supvip_dats"`
  72. LastBeSupvipAt int `json:"last_be_supvip_at"`
  73. SupvipEndAt int `json:"supvip_end_at"`
  74. NoticeSendCnt int `json:"notice_send_cnt"`
  75. LastSendNoticeAt int `json:"last_send_notice_at"`
  76. AfterNoticeLessHIntoCnt int `json:"after_notice_less_h_into_cnt"`
  77. PopularityShareEndAt int `json:"popularity_share_end_at"`
  78. }
  79. type UserState struct {
  80. Uid int `json:"uid"`
  81. Key string `json:"key"`
  82. Value string `json:"value"`
  83. }
  84. type MiniprogramFormid struct {
  85. Uid int `json:"uid"`
  86. CreatedAt int `json:"created_at"`
  87. State int `json:"state"`
  88. PublicId string `json:"public_id"`
  89. }
  90. type QQFormid struct {
  91. Appid string `json:"appid"`
  92. Openid string `json:"openid"`
  93. CreatedAt int `json:"created_at"`
  94. SendAt int `json:"send_at"`
  95. }
  96. type FpdxCardStateList struct {
  97. PartnerId int `json:"partner_id"`
  98. PushFpdx int8 `json:"push_fpdx"`
  99. PushSyj int8 `json:"push_syj"`
  100. IsMpPush int8 `json:"is_mp_push"`
  101. BaseScore int `json:"base_score"`
  102. }