智盟项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
3.0 KiB

  1. package md
  2. type XiaojuGoods struct {
  3. StoreId string `json:"storeId"`
  4. StoreName string `json:"storeName"`
  5. StoreLogo string `json:"storeLogo"`
  6. CityName string `json:"cityName"`
  7. ProvinceName string `json:"provinceName"`
  8. Address string `json:"address"`
  9. Lon float64 `json:"lon"`
  10. Lat float64 `json:"lat"`
  11. BrandName string `json:"brandName"`
  12. ItemInfoList []struct {
  13. ItemName string `json:"itemName"`
  14. CityPrice int `json:"cityPrice"`
  15. StorePrice int `json:"storePrice"`
  16. } `json:"itemInfoList"`
  17. HuiLabels []string `json:"huiLabels"`
  18. }
  19. type OilStationVipPrice struct {
  20. StoreId string `json:"storeId"`
  21. ItemName string `json:"itemName"`
  22. StorePrice int `json:"storePrice"`
  23. VipPrice int `json:"vipPrice"`
  24. CityPrice int `json:"cityPrice"`
  25. }
  26. type ScreenType struct {
  27. Name string `json:"name"`
  28. Type string `json:"type"`
  29. }
  30. type OilReq struct {
  31. Page string `json:"page" example:"页码"`
  32. ItemName string `json:"item_name" example:"油品 92#"`
  33. BrandName string `json:"brand_name" example:"品牌"`
  34. Sort string `json:"sort" example:"排序"`
  35. Lat string `json:"lat" example:"纬度"`
  36. Lng string `json:"lng" example:"经度"`
  37. Keyword string `json:"keyword"`
  38. }
  39. type OilUrlReq struct {
  40. IndexId string `json:"index_id" `
  41. Lat string `json:"lat" example:"纬度"`
  42. Lng string `json:"lng" example:"经度"`
  43. }
  44. type XiaojuGoodsEs struct {
  45. StoreId string `json:"storeId"`
  46. StoreName string `json:"storeName"`
  47. StoreLogo string `json:"storeLogo"`
  48. CityName string `json:"cityName"`
  49. ProvinceName string `json:"provinceName"`
  50. Address string `json:"address"`
  51. Lon float64 `json:"lon"`
  52. Lat float64 `json:"lat"`
  53. BrandName string `json:"brandName"`
  54. ItemName string `json:"itemName"`
  55. CityPrice float64 `json:"cityPrice"`
  56. StorePrice float64 `json:"storePrice"`
  57. HuiLabels string `json:"huiLabels"`
  58. IndexId string `json:"index_id"`
  59. Location struct {
  60. Lat float64 `json:"lat"`
  61. Lon float64 `json:"lon"`
  62. } `json:"location"`
  63. }
  64. const EggOilStation = "zhiying_oil_station"
  65. const EggOilStationMap = `
  66. {
  67. "settings" : {
  68. "number_of_shards" : 2,
  69. "number_of_replicas" : 1
  70. },
  71. "mappings":{
  72. "properties":{
  73. "lat":{
  74. "type": "double"
  75. },
  76. "lon":{
  77. "type": "double"
  78. },
  79. "platform":{
  80. "type": "keyword"
  81. },
  82. "storeId":{
  83. "type": "keyword"
  84. },
  85. "storeName":{
  86. "type": "keyword"
  87. },
  88. "storeLogo":{
  89. "type": "keyword"
  90. },
  91. "address":{
  92. "type": "keyword"
  93. },
  94. "brandName":{
  95. "type": "keyword"
  96. },
  97. "huiLabels":{
  98. "type": "keyword"
  99. },
  100. "provinceName":{
  101. "type": "keyword"
  102. },
  103. "cityName":{
  104. "type": "keyword"
  105. },
  106. "itemName":{
  107. "type": "keyword"
  108. },
  109. "cityPrice":{
  110. "type": "double"
  111. },
  112. "storePrice":{
  113. "type": "double"
  114. },
  115. "vipPrice":{
  116. "type": "double"
  117. },
  118. "index_id":{
  119. "type": "keyword"
  120. },
  121. "location":{
  122. "type": "geo_point"
  123. }
  124. }
  125. }
  126. }`