Browse Source

Merge branch 'bzq1/sci_hq_custom_cf' of eta_server/eta_api into debug

鲍自强 7 months ago
parent
commit
c9afd701b2
1 changed files with 25 additions and 21 deletions
  1. 25 21
      models/data_manage/base_from_sci_hq_index.go

+ 25 - 21
models/data_manage/base_from_sci_hq_index.go

@@ -8,15 +8,17 @@ import (
 )
 
 type BaseFromSciHqIndex struct {
-	BaseFromSciHqIndexId int    `orm:"pk"`
-	ClassifyId           int    `description:"指标分类id"`
-	IndexCode            string `description:"指标编码"`
-	IndexName            string `description:"指标名称"`
-	Unit                 string `description:"单位"`
-	Frequency            string `description:"频度"`
-	StartDate            string `description:"开始日期"`
-	EndDate              string
-	Sort                 int
+	BaseFromSciHqIndexId int       `orm:"pk"`
+	ClassifyId           int       `description:"指标分类id"`
+	IndexCode            string    `description:"指标编码"`
+	IndexName            string    `description:"指标名称"`
+	Unit                 string    `description:"单位"`
+	Frequency            string    `description:"频度"`
+	StartDate            string    `description:"开始日期"`
+	EndDate              string    `description:"结束日期"`
+	Sort                 int       `description:"排序"`
+	LatestValue          float64   `description:"最新值"`
+	LatestDate           time.Time `description:"最后更新时间"`
 	TerminalCode         string
 	FilePath             string `json:"-"`
 	CreateTime           time.Time
@@ -24,18 +26,20 @@ type BaseFromSciHqIndex struct {
 }
 
 type BaseFromSciHqIndexView struct {
-	BaseFromSciHqIndexId int    `orm:"pk"`
-	EdbInfoId            int    `description:"指标库id"`
-	ClassifyId           int    `description:"指标分类id"`
-	IndexCode            string `description:"指标编码"`
-	IndexName            string `description:"指标名称"`
-	UniqueCode           string `description:"唯一code"`
-	Frequency            string `description:"频度"`
-	Unit                 string `description:"单位"`
-	StartDate            string `description:"开始日期"`
-	EndDate              string `description:"结束日期"`
-	Sort                 int    `description:"排序"`
-	EdbExist             int    `description:"edb是否存在"`
+	BaseFromSciHqIndexId int       `orm:"pk"`
+	EdbInfoId            int       `description:"指标库id"`
+	ClassifyId           int       `description:"指标分类id"`
+	IndexCode            string    `description:"指标编码"`
+	IndexName            string    `description:"指标名称"`
+	UniqueCode           string    `description:"唯一code"`
+	Frequency            string    `description:"频度"`
+	Unit                 string    `description:"单位"`
+	StartDate            string    `description:"开始日期"`
+	EndDate              string    `description:"结束日期"`
+	Sort                 int       `description:"排序"`
+	LatestValue          float64   `description:"最新值"`
+	LatestDate           time.Time `description:"最后更新时间"`
+	EdbExist             int       `description:"edb是否存在"`
 	ModifyTime           string
 }