result.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. package entity
  2. type Distribution struct {
  3. Minth string `json:"minth"` //月份
  4. Ratio float64 `json:"ratio"` //总金额环比数据
  5. Value float64 `json:"value"` //总金额值
  6. }
  7. // 市场概况+时间分布
  8. type MarketScaleMain struct {
  9. ProjectInfoAll struct {
  10. Buyercount int `json:"buyercount"` //采购单位数
  11. Projctamout float64 `json:"projctamout"` //项目总金额(亿)
  12. ProjectCount int `json:"project_count"` //项目数量
  13. Projectavgmoney float64 `json:"projectavgmoney"` //项目平均金额(万)
  14. Winnercount int `json:"winnercount"` //中标单位数量
  15. } `json:"project_info_all"`
  16. //市场概况
  17. MarketProfile struct {
  18. Buyercount int `json:"buyercount"` //采购单位数
  19. BuyercountRatio float64 `json:"buyercount_ratio"` //采购单位环比
  20. ProjctamountRatio float64 `json:"projctamount_ratio"` //项目总金额环比
  21. Projctamout float64 `json:"projctamout"` //项目总金额(亿)
  22. ProjectCount int `json:"project_count"` //项目数量
  23. ProjectCountRatio float64 `json:"project_count_ratio"` //项目总数环比
  24. Projectavgmoney float64 `json:"projectavgmoney"` //项目平均金额(万)
  25. ProjectavgmoneyRatio float64 `json:"projectavgmoney_ratio"` //项目平均金额环比
  26. Winnercount int `json:"winnercount"` //中标单位数量
  27. WinnercountRatio float64 `json:"winnercount_ratio"` //中标单位数量环比
  28. } `json:"market_profile"`
  29. //月度分配
  30. MonthDistribution struct {
  31. //项目金额
  32. ProjectAmount []Distribution `json:"project_amount"`
  33. //项目数量
  34. ProjectCount []Distribution `json:"project_count"`
  35. } `json:"month_distribution"`
  36. //年度分配
  37. YearDistribution struct {
  38. //项目总金额
  39. ProjectAmount []Distribution `json:"project_amount"`
  40. //项目数量
  41. ProjectCount []Distribution `json:"project_count"`
  42. } `json:"year_distribution"`
  43. }
  44. // 项目规模TOP10
  45. type ProjectTop struct {
  46. Id string `json:"_id"` //ids中第一个招标信息id
  47. Area string `json:"area"` //省份
  48. City string `json:"city"` //城市
  49. Eidlist []string `json:"eidlist"` //中标企业id集合
  50. Jgtime int `json:"jgtime"` //结果时间
  51. Projectname string `json:"projectname"` //项目名称
  52. Sortprice float64 `json:"sortprice"` //中标金额 > 预算
  53. WinnerS []string `json:"winner_s"` //中标企业名称集合
  54. }
  55. type MarketTopProject struct {
  56. ProjectTop10 []ProjectTop `json:"ProjectTop10"`
  57. }
  58. /* 项目规模 地区分布 客户分布 地区客户top3*/
  59. // 城市项目分布详情
  60. type AreaDetailsS struct {
  61. Amount float64 `json:"amount"` //城市项目金额
  62. City string `json:"city"` //城市名称
  63. Total int `json:"total"` //项目数
  64. }
  65. // 地区分布
  66. type AreaInfosS struct {
  67. Amount float64 `json:"amount"` //总金额
  68. Area string `json:"area"` //省份
  69. AreaDetails []AreaDetailsS `json:"areaDetails"` //城市项目分布详情
  70. Total int `json:"total"` //省份项目总数
  71. }
  72. // 客户分布
  73. type CustomerScaleS struct {
  74. Amount float64 `json:"amount"` //总金额
  75. Buyclass string `json:"buyclass"` //采购单位类型
  76. Total int `json:"total"` //项目总数
  77. }
  78. // 项目规模分布
  79. type ProjectScaleS struct {
  80. Name string `json:"Name"` //项目规模名称
  81. PersentC float64 `json:"Persent_c"` //项目总金额占比
  82. PersentA float64 `json:"Persent_a"` //项目总数占比
  83. }
  84. // 中标单位信息-金额
  85. type WinnerAmount struct {
  86. Id string `json:"id"` //中标单位id
  87. Winner string `json:"winner"` //中标单位名称
  88. WinnerAmount float64 `json:"winner_amount"` //中标单位中标金额
  89. }
  90. // 项目金额TOP3地区的重点中标单位
  91. type ScaleAreaAmountTopS struct {
  92. AreaAmount float64 `json:"area_amount"` //地区总金额
  93. AreaScale float64 `json:"area_scale"` //地区环比
  94. Name string `json:"name"` //省份
  95. Winner []WinnerAmount `json:"winner"` //中标单位信息
  96. }
  97. // 中标单位信息-项目数量
  98. type WinnerTotal struct {
  99. Id string `json:"id"` //中标企业id
  100. Winner string `json:"winner"` //中标企业名称
  101. WinnerTotal int `json:"winner_total"` //中标项目数量
  102. }
  103. // 项目数量TOP3地区的重点中标单位
  104. type ScaleAreaCountTopS struct {
  105. AreaCount int `json:"area_count"` //项目数量
  106. AreaScale float64 `json:"area_scale"` //项目数量占比
  107. Name string `json:"name"` //城市
  108. Winner []WinnerTotal `json:"winner"` //中标企业集合
  109. }
  110. // 项目金额TOP3客户类型的重点中标单位
  111. type ScaleBuyclassAmountTopS struct {
  112. BuyclassAmount float64 `json:"buyclass_amount"` //采购单位类型总金额
  113. BuyclassScale float64 `json:"buyclass_scale"` //采购单位类型金额占比
  114. Name string `json:"name"` //采购单位类型名称
  115. Winner []WinnerAmount `json:"winner"` //中标企业集合
  116. }
  117. // 项目数量TOP3客户类型的重点中标单位
  118. type ScaleBuyclassCountTopS struct {
  119. BuyclassCount int `json:"buyclass_count"` //采购单位项目数量
  120. BuyclassScale float64 `json:"buyclass_scale"` //采购单位数量环比
  121. Name string `json:"name"` //采购单位名称
  122. Winner []WinnerTotal `json:"winner"` //中标企业集合
  123. }
  124. type MarketProjectAllData struct {
  125. //地区分布
  126. AreaInfos []AreaInfosS `json:"area_infos"`
  127. //客户分布
  128. CustomerScale []CustomerScaleS `json:"customer_scale"`
  129. //客户分布(其它)
  130. CustomerScaleOther CustomerScaleS `json:"customer_scale_other"`
  131. //项目规模分布
  132. ProjectScale []ProjectScaleS `json:"projectScale"`
  133. //项目金额TOP3地区的重点中标单位
  134. ScaleAreaAmountTop []ScaleAreaAmountTopS `json:"scaleAreaAmountTop"`
  135. //项目数量TOP3地区的重点中标单位
  136. ScaleAreaCountTop []ScaleAreaCountTopS `json:"scaleAreaCountTop"`
  137. //项目金额TOP3客户类型的重点中标单位
  138. ScaleBuyclassAmountTop []ScaleBuyclassAmountTopS `json:"scaleBuyclassAmountTop"`
  139. //项目数量TOP3客户类型的重点中标单位
  140. ScaleBuyclassCountTop []ScaleBuyclassCountTopS `json:"scaleBuyclassCountTop"`
  141. }
  142. /*细化市场*/
  143. // 订阅分类
  144. type ScaleRefineAllS struct {
  145. Amount float64 `json:"amount"` //订阅分类总金额
  146. Name string `json:"name"` //分类名称
  147. Total int `json:"total"` //项目总数
  148. }
  149. // 中标企业集合 金额排序前三个
  150. type TopListS struct {
  151. Id string `json:"id"` //中标企业id
  152. Name string `json:"name"` //中标企业名称
  153. Value float64 `json:"value"` //金额
  154. Prop float64 `json:"prop"` //占比
  155. }
  156. // 细分市场的重点中标单位-项目金额
  157. type ScaleRefineAmountTopS struct {
  158. Name string `json:"name"` //分类名称
  159. Value float64 `json:"value"` //金额总数
  160. Prop int `json:"prop"` //分类金额百分比
  161. TopList []TopListS `json:"topList"` //中标企业集合 金额排序前三个
  162. }
  163. // 细分市场的重点中标单位-项目数量
  164. type ScaleRefineTotalTopS struct {
  165. Name string `json:"name"` //分类名称
  166. Value int `json:"value"` //项目数量
  167. Prop int `json:"prop"` //项目数量占比
  168. TopList []TopListS `json:"topList"` //中标企业集合 项目数量排序前三个
  169. }
  170. // 细化市场
  171. type MarketScaleRefine struct {
  172. //订阅分类
  173. ScaleRefineAll []ScaleRefineAllS `json:"scaleRefineAll"`
  174. //细分市场的重点中标单位-项目金额
  175. ScaleRefineAmountTop []ScaleRefineAmountTopS `json:"scaleRefineAmountTop"`
  176. //细分市场的重点中标单位-项目数量
  177. ScaleRefineTotalTop []ScaleRefineTotalTopS `json:"scaleRefineTotalTop"`
  178. }
  179. /* 市场-采购单位&&中标企业*/
  180. //合作 中标企业 金额 前三
  181. type Winnertop3Amount struct {
  182. Id string `json:"id"` //中标企业id
  183. Name string `json:"name"` //中标企业名称
  184. Amount float64 `json:"amount"` //中标金额
  185. }
  186. // 采购金额TOP30采购单位及其重点合作中标单位
  187. type BuyerAmountTop3S struct {
  188. Name string `json:"name"` //采购单位名称
  189. Amount float64 `json:"amount"` //采购单位金额
  190. Winnertop3 []Winnertop3Amount `json:"winnertop3"` //合作 中标企业 金额 前三
  191. }
  192. type Winnertop3Number struct {
  193. Id string `json:"id"` //中标企业id
  194. Name string `json:"name"` //中标企业名称
  195. Number int `json:"number"` //合作项目数量
  196. }
  197. // 项目数量TOP30采购单位及其重点合作中标单位
  198. type BuyerCountTop3S []struct {
  199. Name string `json:"name"` //采购单位名称
  200. Number int `json:"number"` //采购单位项目数量
  201. Winnertop3 []Winnertop3Number `json:"winnertop3"` //合作中标企业结婚 项目数量 倒叙 前三
  202. }
  203. // 采购规模分布
  204. type BuyerTimeDistributionS struct {
  205. Key string `json:"key"` //采购规模名称 (金额分隔
  206. TotalAmount float64 `json:"total_amount"` //总金额
  207. TotalNumber float64 `json:"total_number"` //总项目数量
  208. }
  209. // 合作采购单位 中标金额排序 前三
  210. type Buyertop3Amount struct {
  211. Name string `json:"name"` //合作采购单位名称
  212. Amount float64 `json:"amount"` //金额
  213. }
  214. // 中标金额TOP30中标单位及其重点合作采购单位
  215. type WinnerAmountTop3S struct {
  216. Id string `json:"id"` //中标企业id
  217. Name string `json:"name"` //中标企业名称
  218. Amount float64 `json:"amount"` //中标金额
  219. Buyertop3 []Buyertop3Amount `json:"buyertop3"` //合作采购单位 中标金额排序 前三
  220. }
  221. // 合作采购单位 项目数量 前三
  222. type Buyertop3Number struct {
  223. Name string `json:"name"` //采购单位名称
  224. Number int `json:"number"` //项目数量
  225. }
  226. // 项目数量TOP30中标单位及其重点合作采购单位
  227. type WinnerCountTop3S struct {
  228. Id string `json:"id"` //中标企业id
  229. Name string `json:"name"` //中标企业名称
  230. Number int `json:"number"` //项目数量
  231. Buyertop3 []Buyertop3Number `json:"buyertop3"` //合作采购单位 前三
  232. }
  233. // 中标规模分布
  234. type WinnerTimeDistributionS struct {
  235. Key string `json:"key"` //中标规模分布 key (金额分隔
  236. TotalAmount float64 `json:"total_amount"` //总金额
  237. TotalNumber float64 `json:"total_number"` //项目总数量
  238. }
  239. type MarketBuyerAndWinner struct {
  240. //采购金额TOP30采购单位及其重点合作中标单位
  241. BuyerAmountTop3 []BuyerAmountTop3S `json:"buyer_amount_top3"`
  242. //项目数量TOP30采购单位及其重点合作中标单位
  243. BuyerCountTop3 []BuyerCountTop3S `json:"buyer_count_top3"`
  244. //采购规模分布
  245. BuyerTimeDistribution []BuyerTimeDistributionS `json:"buyer_time_distribution"`
  246. //中标金额TOP30中标单位及其重点合作采购单位
  247. WinnerAmountTop3 []WinnerAmountTop3S `json:"winner_amount_top3"`
  248. //项目数量TOP30中标单位及其重点合作采购单位
  249. WinnerCountTop3 []WinnerCountTop3S `json:"winner_count_top3"`
  250. //中标规模分布
  251. WinnerTimeDistribution []WinnerTimeDistributionS `json:"winner_time_distribution"`
  252. }