up.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package model
  2. import (
  3. "time"
  4. xtime "go-common/library/time"
  5. )
  6. // UpInfo is users of growup/video/column who applied for.
  7. type UpInfo struct {
  8. ID int64 `json:"id"`
  9. MID int64 `json:"mid"`
  10. Nickname string `json:"nickname"`
  11. AccountType int `json:"account_type"`
  12. OriginalArchiveCount int `json:"original_archive_count"`
  13. MainCategory int `json:"category_id"`
  14. Bgms int `json:"bgms"`
  15. Fans int `json:"fans"`
  16. TotalPlayCount int64 `json:"total_play_count"`
  17. AccountState int `json:"account_state"`
  18. SignType int `json:"sign_type,omitempty"`
  19. Reason string `json:"reason"`
  20. ApplyAt xtime.Time `json:"apply_at"`
  21. SignedAt xtime.Time `json:"signed_at"`
  22. RejectAt xtime.Time `json:"reject_at"`
  23. ForbidAt xtime.Time `json:"forbid_at"`
  24. QuitAt xtime.Time `json:"quit_at"`
  25. DismissAt xtime.Time `json:"dismiss_at"`
  26. ExpiredIn xtime.Time `json:"expired_in"`
  27. IsDeleted int `json:"-"`
  28. }
  29. // UpStatus is user status of growup plan
  30. type UpStatus struct {
  31. Status []*BusinessStatus `json:"status"`
  32. Blocked bool `json:"blocked"`
  33. }
  34. // BusinessStatus type: 1.视频 2.专栏 3.素材
  35. type BusinessStatus struct {
  36. IsWhite bool `json:"in_white_list"`
  37. AccountState int `json:"account_state"`
  38. AccountType int `json:"account_type"`
  39. Type int `json:"type"`
  40. Reason string `json:"reason"`
  41. ShowPanel bool `json:"show_panel"`
  42. ExpiredIn xtime.Time `json:"expired_in"`
  43. QuitAt time.Time `json:"-"`
  44. CTime time.Time `json:"-"`
  45. }
  46. // CreditRecord credit record
  47. type CreditRecord struct {
  48. ID int64 `json:"id"`
  49. MID int64 `json:"mid"`
  50. OperateAt xtime.Time `json:"operate_at"`
  51. Operator string `json:"operator"`
  52. Reason int `json:"reason"`
  53. Deducted int `json:"deducted"`
  54. Remaining int `json:"remaining"`
  55. IsDeleted int `json:"recovered"`
  56. CTime xtime.Time `json:"ctime"`
  57. MTime xtime.Time `json:"mtime"`
  58. }