tuoling805 1 年之前
父节点
当前提交
acbb256146
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      models/edb_info.go
  2. 1 1
      services/init_base_index.go

+ 3 - 3
models/edb_info.go

@@ -24,8 +24,8 @@ type EdbInfoResp struct {
 		UniqueCode       string    `json:"UniqueCode"`
 		CreateTime       time.Time `json:"CreateTime"`
 		ModifyTime       time.Time `json:"ModifyTime"`
-		MinValue         int       `json:"MinValue"`
-		MaxValue         int       `json:"MaxValue"`
+		MinValue         float64   `json:"MinValue"`
+		MaxValue         float64   `json:"MaxValue"`
 		CalculateFormula string    `json:"CalculateFormula"`
 		EdbType          int       `json:"EdbType"`
 		Sort             int       `json:"Sort"`
@@ -37,7 +37,7 @@ type EdbInfoResp struct {
 		EdbNameEn        string    `json:"EdbNameEn"`
 		UnitEn           string    `json:"UnitEn"`
 		LatestDate       string    `json:"LatestDate"`
-		LatestValue      int       `json:"LatestValue"`
+		LatestValue      float64   `json:"LatestValue"`
 		ChartImage       string    `json:"ChartImage"`
 		Calendar         string    `json:"Calendar"`
 		DataDateType     string    `json:"DataDateType"`

+ 1 - 1
services/init_base_index.go

@@ -139,7 +139,7 @@ func InitBaseIndexData() {
 				resp = new(models.ClassifyResp)
 				err = json.Unmarshal(result, &resp)
 				if err != nil {
-					utils.FileLog.Info("初始化分类2失败:" + err.Error())
+					utils.FileLog.Info("初始化分类3失败:" + err.Error())
 					return
 				}