|
@@ -0,0 +1,70 @@
|
|
|
+package edb
|
|
|
+
|
|
|
+import "time"
|
|
|
+
|
|
|
+type BaseResponse struct {
|
|
|
+ Ret int
|
|
|
+ Msg string
|
|
|
+ ErrMsg string
|
|
|
+ ErrCode string
|
|
|
+ Data interface{}
|
|
|
+ Success bool `description:"true 执行成功,false 执行失败"`
|
|
|
+ IsSendEmail bool `json:"-" description:"true 发送邮件,false 不发送邮件"`
|
|
|
+ IsAddLog bool `json:"-" description:"true 新增操作日志,false 不新增操作日志" `
|
|
|
+}
|
|
|
+
|
|
|
+// BaseEdbInfoDetailResp 指标详情
|
|
|
+type BaseEdbInfoDetailResp struct {
|
|
|
+ SourceName string `description:"来源名称"`
|
|
|
+ EdbCode string `description:"指标编码" `
|
|
|
+ EdbName string `description:"指标名称" `
|
|
|
+ EdbNameSource string `description:"指标名称来源" `
|
|
|
+ Frequency string `description:"频率"`
|
|
|
+ Unit string `description:"单位" `
|
|
|
+ StartDate string `description:"起始日期" `
|
|
|
+ EndDate string `description:"终止日期" `
|
|
|
+ UniqueCode string `description:"指标唯一编码" `
|
|
|
+ CreateTime time.Time `description:"create_time"`
|
|
|
+ ModifyTime time.Time `description:"modify_time" `
|
|
|
+ MinValue float64 `description:"指标最小值" `
|
|
|
+ MaxValue float64 `description:"指标最大值" `
|
|
|
+ EdbNameEn string `description:"英文指标名称" `
|
|
|
+ UnitEn string `description:"英文单位" `
|
|
|
+ LatestDate string `description:"数据最新日期"`
|
|
|
+ LatestValue float64 `description:"数据最新值" `
|
|
|
+ ChartImage string `description:"图表图片" `
|
|
|
+ DataList []BaseEdbInfoSearchData
|
|
|
+}
|
|
|
+
|
|
|
+// BaseEdbInfoSearchData 数据日期
|
|
|
+type BaseEdbInfoSearchData struct {
|
|
|
+ EdbDataId int `description:"数据ID"`
|
|
|
+ DataTime string `description:"数据日期"`
|
|
|
+ Value float64 `description:"数据"`
|
|
|
+}
|
|
|
+
|
|
|
+// EdbInfoDetailResp 指标详情
|
|
|
+type EdbInfoDetailResp struct {
|
|
|
+ SourceName string `description:"来源名称" json:"source_name"`
|
|
|
+ EdbCode string `description:"指标编码" json:"edb_code"`
|
|
|
+ EdbName string `description:"指标名称" json:"edb_name"`
|
|
|
+ Frequency string `description:"频率" json:"frequency"`
|
|
|
+ Unit string `description:"单位" json:"unit"`
|
|
|
+ StartDate string `description:"起始日期" json:"start_date"`
|
|
|
+ EndDate string `description:"终止日期" json:"end_date"`
|
|
|
+ UniqueCode string `description:"指标唯一编码" json:"unique_code"`
|
|
|
+ MinValue float64 `description:"指标最小值" json:"min_value"`
|
|
|
+ MaxValue float64 `description:"指标最大值" json:"max_value"`
|
|
|
+ EdbNameEn string `description:"英文指标名称" json:"edb_name_en"`
|
|
|
+ UnitEn string `description:"英文单位" json:"unit_en"`
|
|
|
+ LatestDate string `description:"数据最新日期" json:"latest_date"`
|
|
|
+ LatestValue float64 `description:"数据最新值" json:"latest_value"`
|
|
|
+ ChartImage string `description:"图表图片" json:"chart_image"`
|
|
|
+ DataList []EdbInfoSearchData `json:"data_list"`
|
|
|
+}
|
|
|
+
|
|
|
+// EdbInfoSearchData 数据日期
|
|
|
+type EdbInfoSearchData struct {
|
|
|
+ DataTime string `description:"数据日期" json:"data_time"`
|
|
|
+ Value float64 `description:"数据" json:"value"`
|
|
|
+}
|