base_from_yongyi.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package models
  2. import "time"
  3. // YongyiExcelData 涌益咨询的excel数据
  4. type YongyiExcelIndex struct {
  5. //BaseFilePath string
  6. //RenameFilePath string
  7. ClassifyName string `description:"指标目录"`
  8. ClassifySort int `description:"指标目录排序号"`
  9. IndexName string `description:"指标名称"`
  10. IndexCode string `description:"指标编码"`
  11. Unit string `description:"单位"`
  12. Sort int `description:"排序号"`
  13. Frequency string `description:"频度"`
  14. TerminalCode string `description:"编码"`
  15. ExcelDataMap map[string]string
  16. }
  17. type BaseFromYongyiIndex struct {
  18. YongyiIndexId int `orm:"column(yongyi_index_id);pk"`
  19. ClassifyId int
  20. IndexCode string
  21. IndexName string
  22. Frequency string
  23. Unit string
  24. Sort int
  25. CreateTime time.Time
  26. ModifyTime time.Time
  27. }
  28. // BaseFromYongyiClassify 涌益咨询原始数据分类表
  29. type BaseFromYongyiClassify struct {
  30. ClassifyId int `orm:"column(classify_id);pk"`
  31. ClassifyName string `description:"分类名称"`
  32. ParentId int `description:"父级id"`
  33. SysUserId int `description:"创建人id"`
  34. SysUserRealName string `description:"创建人姓名"`
  35. Level int `description:"层级"`
  36. Sort int `description:"排序字段,越小越靠前,默认值:10"`
  37. ModifyTime time.Time `description:"修改时间"`
  38. CreateTime time.Time `description:"创建时间"`
  39. }
  40. type BaseFromYongyiData struct {
  41. YongyiDataId int `orm:"column(yongyi_data_id);pk"`
  42. YongyiIndexId int
  43. IndexCode string
  44. DataTime string
  45. Value string
  46. CreateTime time.Time
  47. ModifyTime time.Time
  48. DataTimestamp int64
  49. }
  50. type YongyiSheet struct {
  51. NamePrefix string
  52. ClassifyName string
  53. Frequency string
  54. Unit string
  55. }
  56. type BaseEdbLibResponse struct {
  57. Ret int
  58. Msg string
  59. ErrMsg string
  60. ErrCode string
  61. Data interface{}
  62. }