ArchiveStat.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. package model
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // ArchiveStat is table archive_stat
  6. type ArchiveStat struct {
  7. ID int64 `json:"id"`
  8. Business int `json:"business"`
  9. StatType int `json:"stat_type"`
  10. TypeID int `json:"typeid"`
  11. GroupID int `json:"group_id"`
  12. UID int64 `json:"uid"`
  13. StatDate xtime.Time `json:"stat_date"`
  14. Content string `json:"content"`
  15. Ctime xtime.Time `json:"ctime"`
  16. Mtime xtime.Time `json:"mtime"`
  17. State int `json:"state"`
  18. StatValue int64 `json:"stat_value"`
  19. }
  20. // StatNode is Minimum dimension stat value.
  21. type StatNode struct {
  22. StatDate xtime.Time `json:"stat_date"`
  23. Business int `json:"business"`
  24. StatType int `json:"stat_type"`
  25. TypeID int `json:"typeid"`
  26. UID int64 `json:"uid"`
  27. StatValue int64 `json:"stat_value"`
  28. }
  29. // CsvMetaNode is
  30. type CsvMetaNode struct {
  31. Index int
  32. Name string
  33. DataCode int
  34. }
  35. // StatItem is element of stat view json model.
  36. type StatItem struct {
  37. DataCode int `json:"data_code"`
  38. Value int64 `json:"value"`
  39. }
  40. // StatView is common stat view json model.
  41. type StatView struct {
  42. Date int64 `json:"date"`
  43. Stats []*StatItem `json:"stats"`
  44. }
  45. // StatItemExt is StatItem extension.
  46. type StatItemExt struct {
  47. Uname string `json:"uname"`
  48. Stats []*StatItem `json:"stat"`
  49. }
  50. // StatViewExt is StatView extension
  51. type StatViewExt struct {
  52. Date int64 `json:"date"`
  53. Wraps []*StatItemExt `json:"stats"`
  54. }
  55. const (
  56. // business字段枚举值
  57. // ArchiveRecheck is 稿件回查项目
  58. ArchiveRecheck = 1
  59. // TagRecheck is 稿件频道tag回查项目
  60. TagRecheck = 2
  61. // RandomVideoAudit is 视频非定时审核操作数据
  62. RandomVideoAudit = 3
  63. // FixedVideoAudit is 视频定时审核操作数据
  64. FixedVideoAudit = 4
  65. // stat_type字段枚举值
  66. // 统计指标枚举值
  67. // TotalArchive is 总稿件量
  68. TotalArchive = 1
  69. // TotalOper is 总操作量
  70. TotalOper = 2
  71. // ReCheck is 打回量
  72. ReCheck = 3
  73. // Lock is 锁定量
  74. Lock = 4
  75. // ThreeLimit is 三限量
  76. ThreeLimit = 5
  77. // FirstCheck is 一查稿件量
  78. FirstCheck = 6
  79. // SecondCheck is 二查稿件量
  80. SecondCheck = 7
  81. // ThirdCheck is 三查稿件量
  82. ThirdCheck = 8
  83. // TotalOperFrequency is 总操作次数
  84. TotalOperFrequency = 9
  85. // FirstCheckOper is 一查次数
  86. FirstCheckOper = 10
  87. // SecondCheckOper is 二查次数
  88. SecondCheckOper = 11
  89. // ThirdCheckOper is 三查次数
  90. ThirdCheckOper = 12
  91. // FirstCheckTime is 一查响应总时间
  92. FirstCheckTime = 13
  93. // SecondCheckTime is 二查响应总时间
  94. SecondCheckTime = 14
  95. // ThirdCheckTime is 三查响应总时间
  96. ThirdCheckTime = 15
  97. // FirstAvgTime is 一查响应平均耗时
  98. FirstAvgTime = 16
  99. // SecondAvgTime is 二查响应平均耗时
  100. SecondAvgTime = 17
  101. // ThirdAvgTime is 三查响应平均耗时
  102. ThirdAvgTime = 18
  103. // NoRankArchive is 排行禁止
  104. NoRankArchive = 19
  105. // NoIndexArchive is 动态禁止
  106. NoIndexArchive = 20
  107. // NoRecommendArchive is 推荐禁止
  108. NoRecommendArchive = 21
  109. // NoPushArchive is 粉丝动态禁止
  110. NoPushArchive = 22
  111. // TagRecheckTotalTime is tag回查总时间
  112. TagRecheckTotalTime = 23
  113. // TagRecheckTotalCount is 频道回查操作总量
  114. TagRecheckTotalCount = 24
  115. // TagChangeCount is tag变更的稿件量
  116. TagChangeCount = 25
  117. // TagRecheckAvgTime is tag保存操作平均耗时
  118. TagRecheckAvgTime = 26
  119. // TotalVideo is 总操视频量
  120. TotalVideo = 27
  121. // TotalVideoOper is 总操作次数
  122. TotalVideoOper = 28
  123. // OpenVideo is 开放浏视频量
  124. OpenVideo = 29
  125. // OpenVideoOper is 开放浏览操作次数
  126. OpenVideoOper = 30
  127. // VipAccessVideo is 会员可视频量
  128. VipAccessVideo = 31
  129. // VipAccessVideoOper is 会员可见操作次数
  130. VipAccessVideoOper = 32
  131. // RejectVideo is 打视频量
  132. RejectVideo = 33
  133. // RejectVideoOper is 打回操作次数
  134. RejectVideoOper = 34
  135. // LockVideo is 锁视频量
  136. LockVideo = 35
  137. // LockVideoOper is 锁定操作次数
  138. LockVideoOper = 36
  139. // PassVideoTotalDuration is 通过视频总时长
  140. PassVideoTotalDuration = 37
  141. // FailVideoTotalDuration is 未通过视频总时长
  142. FailVideoTotalDuration = 38
  143. // WaitAuditAvgTime is 视频提交到进入待审平均响应时间
  144. WaitAuditAvgTime = 39
  145. // WaitAuditDuration is 视频提交到进入待审时间
  146. WaitAuditDuration = 40
  147. // WaitAuditOper is 视频提交到进入待审次数
  148. WaitAuditOper = 41
  149. //valueType
  150. // NumValue is num unit
  151. NumValue = 1
  152. // TimeValue is second unit
  153. TimeValue = 2
  154. )