base_from_rzd_index.go 921 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Package models
  2. // @Author gmy 2024/8/7 9:38:00
  3. package models
  4. import (
  5. "github.com/shopspring/decimal"
  6. "time"
  7. )
  8. type BaseFromRzdIndex struct {
  9. BaseFromRzdIndexId int `orm:"column(base_from_rzd_index_id);pk"`
  10. CreateTime string `orm:"column(create_time)"`
  11. ModifyTime string `orm:"column(modify_time)"`
  12. BaseFromLyClassifyId int `orm:"column(base_from_ly_classify_id)"`
  13. IndexCode string `orm:"column(index_code)"`
  14. IndexName string `orm:"column(index_name)"`
  15. Frequency string `orm:"column(frequency)"`
  16. Unit string `orm:"column(unit)"`
  17. }
  18. type IndexInfo struct {
  19. StartDate time.Time
  20. EndDate time.Time
  21. LatestValue decimal.Decimal
  22. IndexName string
  23. IndexCode string
  24. Frequency string
  25. Unit string
  26. ClassifyId int
  27. DataList []IndexData
  28. }
  29. type IndexData struct {
  30. DataTime time.Time
  31. Value decimal.Decimal
  32. }