email.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package model
  2. import "time"
  3. // IncomeInfo income info.
  4. type IncomeInfo struct {
  5. ID int64 `json:"id"`
  6. AVID int64 `json:"av_id"`
  7. MID int64 `json:"mid"`
  8. TagID int64 `json:"-"`
  9. Income int64 `json:"income"`
  10. BaseIncome int64 `json:"-"`
  11. TotalIncome int64 `json:"total_income"`
  12. TaxMoney int64 `json:"tax_money"`
  13. UploadTime time.Time `json:"-"`
  14. IsDeleted int `json:"-"`
  15. Date time.Time `json:"date"`
  16. BType int `json:"-"`
  17. }
  18. // TotalInfo total info.
  19. type TotalInfo struct {
  20. TotalIncome int64 `json:"total_income"`
  21. MIDCount int `json:"mid_count"`
  22. AVCount int `json:"av_count"`
  23. }
  24. // MIDInfo mid info.
  25. type MIDInfo struct {
  26. ID int64 `json:"id"`
  27. MID int64 `json:"mid"`
  28. Income int64 `json:"income"`
  29. TotalIncome int64 `json:"total_income"`
  30. IsDeleted int `json:"is_deleted"`
  31. NickName string `json:"nickname"`
  32. }
  33. // AVIDInfo av info.
  34. type AVIDInfo struct {
  35. AVID int64 `json:"av_id"`
  36. MID int64 `json:"mid"`
  37. NickName string `json:"nickname"`
  38. Income int64 `json:"income"`
  39. TotalIncome int64 `json:"total_income"`
  40. }
  41. // TagInfo email tag info
  42. type TagInfo struct {
  43. ID int64 `json:"-"`
  44. Tag string `json:"tag"`
  45. Category int `json:"-"`
  46. AVID int64 `json:"-"`
  47. AVCount int `json:"av_count"`
  48. Income int64 `json:"income"`
  49. TotalIncome int64 `json:"total_income"`
  50. IsCommon int `json:"-"`
  51. IsDeleted int `json:"-"`
  52. }