income.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. package income
  2. import (
  3. "go-common/library/time"
  4. )
  5. // AvIncome av income
  6. type AvIncome struct {
  7. ID int64
  8. AvID int64
  9. MID int64
  10. TagID int64
  11. IsOriginal int
  12. UploadTime time.Time
  13. PlayCount int64
  14. TotalIncome int64
  15. Income int64
  16. TaxMoney int64
  17. Date time.Time
  18. BaseIncome int64
  19. }
  20. // ColumnIncome column income
  21. type ColumnIncome struct {
  22. ID int64
  23. ArticleID int64
  24. Title string
  25. MID int64
  26. TagID int64
  27. ViewCount int64
  28. Income int64
  29. TotalIncome int64
  30. TaxMoney int64
  31. UploadTime time.Time
  32. Date time.Time
  33. BaseIncome int64
  34. }
  35. // BgmIncome sid + date: unique key
  36. type BgmIncome struct {
  37. AID int64
  38. SID int64
  39. MID int64
  40. CID int64
  41. TaxMoney int64
  42. Income int64
  43. TotalIncome int64
  44. Date time.Time
  45. BaseIncome int64
  46. DailyTotalIncome int64
  47. }
  48. // UpBusinessIncome av or column or bgm's middle-data-structure
  49. type UpBusinessIncome struct {
  50. MID int64
  51. Income int64
  52. BaseIncome int64
  53. Percent float64
  54. Tax int64
  55. PlayCount int64
  56. AvCount int64
  57. ColumnCount int64
  58. BgmCount map[int64]bool
  59. ViewCount int64
  60. Business int // 1.视频 2.专栏 3.素材
  61. }
  62. // UpIncome up income
  63. type UpIncome struct {
  64. ID int64
  65. MID int64
  66. AvCount int64
  67. PlayCount int64
  68. AvIncome int64
  69. AudioIncome int64
  70. ColumnCount int64
  71. ColumnIncome int64
  72. BgmIncome int64
  73. BgmCount int64
  74. AvTax int64
  75. ColumnTax int64
  76. BgmTax int64
  77. TaxMoney int64
  78. Income int64
  79. TotalIncome int64
  80. AvBaseIncome int64
  81. ColumnBaseIncome int64
  82. BgmBaseIncome int64
  83. BaseIncome int64
  84. AvTotalIncome int64
  85. ColumnTotalIncome int64
  86. BgmTotalIncome int64
  87. Date time.Time
  88. IsDeleted int
  89. DBState int
  90. }
  91. // AvIncomeStat av income stat
  92. type AvIncomeStat struct {
  93. AvID int64
  94. MID int64
  95. TagID int64
  96. IsOriginal int
  97. UploadTime time.Time
  98. TotalIncome int64
  99. CTime time.Time
  100. IsDeleted int
  101. DataState int // 1: insert 2: update
  102. }
  103. // ColumnIncomeStat column income stat
  104. type ColumnIncomeStat struct {
  105. ArticleID int64
  106. Title string
  107. TagID int64
  108. MID int64
  109. UploadTime time.Time
  110. TotalIncome int64
  111. DataState int
  112. }
  113. // BgmIncomeStat bgm income stat
  114. type BgmIncomeStat struct {
  115. SID int64
  116. TotalIncome int64
  117. DataState int
  118. }
  119. // UpIncomeStat up income stat
  120. type UpIncomeStat struct {
  121. MID int64
  122. TotalIncome int64
  123. AvTotalIncome int64
  124. ColumnTotalIncome int64
  125. BgmTotalIncome int64
  126. IsDeleted int
  127. DataState int // 1: insert 2: update
  128. }
  129. // UpAccount up account
  130. type UpAccount struct {
  131. MID int64
  132. HasSignContract int
  133. State int
  134. TotalIncome int64
  135. TotalUnwithdrawIncome int64
  136. TotalWithdrawIncome int64
  137. IncIncome int64
  138. LastWithdrawTime time.Time
  139. Version int64
  140. AllowanceState int
  141. Nickname string
  142. WithdrawDateVersion string
  143. IsDeleted int
  144. DataState int // 1: insert 2: update
  145. }