edb_info.go 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package models
  2. import "time"
  3. type EdbInfoResp struct {
  4. Ret int `json:"Ret"`
  5. Msg string `json:"Msg"`
  6. ErrMsg string `json:"ErrMsg"`
  7. ErrCode string `json:"ErrCode"`
  8. Data struct {
  9. EdbInfoId int `json:"EdbInfoId"`
  10. SourceName string `json:"SourceName"`
  11. Source int `json:"Source"`
  12. EdbCode string `json:"EdbCode"`
  13. EdbName string `json:"EdbName"`
  14. EdbNameSource string `json:"EdbNameSource"`
  15. Frequency string `json:"Frequency"`
  16. Unit string `json:"Unit"`
  17. StartDate string `json:"StartDate"`
  18. EndDate string `json:"EndDate"`
  19. ClassifyId int `json:"ClassifyId"`
  20. SysUserId int `json:"SysUserId"`
  21. SysUserRealName string `json:"SysUserRealName"`
  22. UniqueCode string `json:"UniqueCode"`
  23. CreateTime time.Time `json:"CreateTime"`
  24. ModifyTime time.Time `json:"ModifyTime"`
  25. MinValue float64 `json:"MinValue"`
  26. MaxValue float64 `json:"MaxValue"`
  27. CalculateFormula string `json:"CalculateFormula"`
  28. EdbType int `json:"EdbType"`
  29. Sort int `json:"Sort"`
  30. MoveType int `json:"MoveType"`
  31. MoveFrequency string `json:"MoveFrequency"`
  32. NoUpdate int `json:"NoUpdate"`
  33. ServerUrl string `json:"ServerUrl"`
  34. EdbInfoType int `json:"EdbInfoType"`
  35. EdbNameEn string `json:"EdbNameEn"`
  36. UnitEn string `json:"UnitEn"`
  37. LatestDate string `json:"LatestDate"`
  38. LatestValue float64 `json:"LatestValue"`
  39. ChartImage string `json:"ChartImage"`
  40. Calendar string `json:"Calendar"`
  41. DataDateType string `json:"DataDateType"`
  42. CalculateList []*EdbInfoCalculateMappingDetail
  43. } `json:"Data"`
  44. Success bool `json:"Success"`
  45. }
  46. type EdbInfoCalculateMappingDetail struct {
  47. EdbCode string `description:"指标编码"`
  48. BaseEdbInfoCode []*EdbInfoCalculateBaseEdbInfo `description:"依赖的基础指标编码"`
  49. }
  50. type EdbInfoCalculateBaseEdbInfo struct {
  51. FromEdbCode string `description:"指标编码"`
  52. }
  53. type EdbInfoItemResp struct {
  54. Ret int `json:"Ret"`
  55. Msg string `json:"Msg"`
  56. ErrMsg string `json:"ErrMsg"`
  57. ErrCode string `json:"ErrCode"`
  58. Data struct {
  59. EdbInfoId int `orm:"column(edb_info_id);pk"`
  60. EdbInfoType int `description:"指标类型,0:普通指标,1:预测指标"`
  61. SourceName string `description:"来源名称"`
  62. Source int `description:"来源id"`
  63. EdbCode string `description:"指标编码"`
  64. EdbName string `description:"指标名称"`
  65. EdbNameEn string `description:"英文指标名称"`
  66. EdbNameSource string `description:"指标名称来源"`
  67. Frequency string `description:"频率"`
  68. Unit string `description:"单位"`
  69. UnitEn string `description:"英文单位"`
  70. StartDate string `description:"起始日期"`
  71. EndDate string `description:"终止日期"`
  72. ClassifyId int `description:"分类id"`
  73. SysUserId int
  74. SysUserRealName string
  75. UniqueCode string `description:"指标唯一编码"`
  76. CreateTime time.Time
  77. ModifyTime time.Time
  78. MinValue float64 `description:"指标最小值"`
  79. MaxValue float64 `description:"指标最大值"`
  80. CalculateFormula string `description:"计算公式"`
  81. EdbType int `description:"指标类型:1:基础指标,2:计算指标"`
  82. IsUpdate int `description:"当天是否已更新,1:未更新,2:已更新"`
  83. Sort int `description:"排序字段"`
  84. LatestDate string `description:"数据最新日期"`
  85. LatestValue float64 `description:"数据最新值"`
  86. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  87. MoveFrequency string `description:"移动频度"`
  88. NoUpdate int8 `description:"是否停止更新,0:继续更新;1:停止更新"`
  89. ServerUrl string `description:"服务器地址"`
  90. ChartImage string `description:"图表图片"`
  91. Calendar string `description:"公历/农历" orm:"default(公历);"`
  92. DataDateType string `orm:"column(data_date_type);size(255);null;default(交易日)"`
  93. } `json:"Data"`
  94. Success bool `json:"Success"`
  95. }