index.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package index
  2. import (
  3. "time"
  4. )
  5. // 钢联化工指标数据
  6. type BaseFromMysteelChemicalIndex struct {
  7. BaseFromMysteelChemicalIndexId int64 `gorm:"primaryKey;column:base_from_mysteel_chemical_index_id;type:int(11);not null"` //序号
  8. IndexCode string `gorm:"column:index_code"`
  9. IndexName string `gorm:"column:index_name"`
  10. Unit string `gorm:"column:unit"`
  11. Source string `gorm:"column:source"`
  12. Frequency string `gorm:"column:frequency"`
  13. StartDate time.Time `gorm:"column:start_date"`
  14. EndDate time.Time `gorm:"column:end_date"`
  15. Describe string `gorm:"column:describe"`
  16. UpdateWeek string `gorm:"column:update_week"`
  17. UpdateTime string `gorm:"column:update_time"`
  18. UpdateTime2 string `gorm:"column:update_time2"`
  19. SysUserId int `gorm:"column:sys_user_id"`
  20. SysUserRealName string `gorm:"column:sys_user_real_name"`
  21. FilePath string `gorm:"column:file_path"`
  22. MergeFilePath string `gorm:"column:merge_file_path"`
  23. FileIndex int `gorm:"column:file_index"`
  24. MergeUpdateWeek string `gorm:"column:merge_update_week"`
  25. UpdateDate string `gorm:"column:update_date"`
  26. CreateTime time.Time `gorm:"autoCreateTime;column:create_time"` //创建时间
  27. ModifyTime time.Time `gorm:"autoUpdateTime:milli;column:modify_time"` //最后更新时间
  28. }
  29. type IndexAddReq struct {
  30. IndexCode string `json:"IndexCode" binding:"required"` //指标编码
  31. UpdateWeek string `json:"UpdateWeek"` //更新周期
  32. RunMode string `description:"运行环境:debug:测试(默认),release:生产" json:"RunMode"` //更新周期
  33. }
  34. type IndexRefreshReq struct {
  35. MergeFilePath string `json:"MergeFilePath" binding:"required"` //指标编码
  36. }