Kaynağa Gözat

汾渭-网站响应格式变更

gmy 3 ay önce
ebeveyn
işleme
80778719b6
1 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 8 8
      models/base_from_fenwei.go

+ 8 - 8
models/base_from_fenwei.go

@@ -84,13 +84,13 @@ type JsonConfig struct {
 }
 
 type FenWeiNetResponse struct {
-	MonthlyAccumulation        float64     `json:"monthly_accumulation"`
+	MonthlyAccumulation        string      `json:"monthly_accumulation"`
 	ProductItemCode            string      `json:"product_item_code"`
 	MonthlyValueChnName        string      `json:"monthly_value_chn_name"`
 	MonthlyAccumulationChnName string      `json:"monthly_accumulation_chn_name"`
 	ProductItemName            string      `json:"product_item_name"`
 	DataDate                   string      `json:"data_date"`
-	MonthlyValue               float64     `json:"monthly_value"`
+	MonthlyValue               string      `json:"monthly_value"`
 	MonthlyValueChnUnit        string      `json:"monthly_value_chn_unit"`
 	ProductCode                string      `json:"product_code"`
 	ProvinceName               string      `json:"province_name"`
@@ -102,19 +102,19 @@ type FenWeiNetResponse struct {
 	StockChnUnit               string      `json:"stock_chn_unit"`
 	CoalTypeName               string      `json:"coal_type_name"`
 	WeekValueChnName           string      `json:"week_value_chn_name"`
-	WeekValue                  float64     `json:"week_value"`
+	WeekValue                  string      `json:"week_value"`
 	AvaliableDaysChnName       string      `json:"avaliable_days_chn_name"`
 	AvaliableDaysChnUnit       string      `json:"avaliable_days_chn_unit"`
-	AvaliableDays              float64     `json:"avaliable_days"`
+	AvaliableDays              string      `json:"avaliable_days"`
 	DailyConsumptionChnName    string      `json:"daily_consumption_chn_name"`
 	DailyConsumptionChnUnit    string      `json:"daily_consumption_chn_unit"`
-	DailyConsumption           float64     `json:"daily_consumption"`
+	DailyConsumption           string      `json:"daily_consumption"`
 	InventoryIndexChnUnit      string      `json:"inventory_index_chn_unit"`
-	InventoryIndex             float64     `json:"inventory_index"`
+	InventoryIndex             string      `json:"inventory_index"`
 	TonsChnUnit                string      `json:"tons_chn_unit"`
-	Tons                       float64     `json:"tons"`
+	Tons                       string      `json:"tons"`
 	TransportVolumeChnUnit     string      `json:"transport_volume_chn_unit"`
-	TransportVolume            float64     `json:"transport_volume"`
+	TransportVolume            string      `json:"transport_volume"`
 	PriceRmbChnName            string      `json:"price_rmb_chn_name"`
 	PriceIndexMomChnName       string      `json:"price_index_mom_chn_name"`
 	PriceRmbChnUnit            string      `json:"price_rmb_chn_unit"`