123456789101112131415161718192021222324252627282930313233343536 |
- // Package models
- // @Author gmy 2024/8/7 9:38:00
- package models
- import (
- "github.com/shopspring/decimal"
- "time"
- )
- type BaseFromRzdIndex struct {
- BaseFromRzdIndexId int `orm:"column(base_from_rzd_index_id);pk"`
- CreateTime string `orm:"column(create_time)"`
- ModifyTime string `orm:"column(modify_time)"`
- BaseFromLyClassifyId int `orm:"column(base_from_ly_classify_id)"`
- IndexCode string `orm:"column(index_code)"`
- IndexName string `orm:"column(index_name)"`
- Frequency string `orm:"column(frequency)"`
- Unit string `orm:"column(unit)"`
- }
- type IndexInfo struct {
- StartDate time.Time
- EndDate time.Time
- LatestValue decimal.Decimal
- IndexName string
- IndexCode string
- Frequency string
- Unit string
- ClassifyId int
- DataList []IndexData
- }
- type IndexData struct {
- DataTime time.Time
- Value decimal.Decimal
- }
|