edb_monitor.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. )
  5. type EdbMonitorInfoItem struct {
  6. EdbMonitorId int `orm:"column(edb_monitor_id);pk"`
  7. EdbMonitorClassifyId int `description:"预警分类id"`
  8. EdbMonitorClassifyName string `description:"预警分类名称"`
  9. EdbMonitorName string `description:"预警名称"`
  10. EdbInfoId int `description:"指标id"`
  11. EdbInfoName string `description:"指标名称"`
  12. EdbInfoType int `description:"指标类型"`
  13. EdbUniqueCode string `description:"指标唯一标识"`
  14. EdbClassifyId int `description:"指标id"`
  15. EdbCode string `description:"指标编码"`
  16. Source int `description:"指标来源" json:"-"`
  17. SubSource int `description:"指标子来源: 0-经济数据库;1-日期序列;2-高频数据" json:"-"`
  18. EdbLatestDate string `description:"最新日期"`
  19. EdbLatestValue float64 `description:"最新值"`
  20. MonitorType int `description:"突破方式: 0-向上突破;1-向下突破"`
  21. MonitorData float64 `description:"预警值"`
  22. MonitorLevel string `description:"预警等级"`
  23. State int `description:"预警状态: 0-已关闭;1-未触发;2-已触发"`
  24. EdbTriggerDate string `description:"触发日期"`
  25. MonitorTriggerTime string `description:"预警触发时间"`
  26. CreateUserId int `description:"创建人id"`
  27. CreateUserName string `description:"创建人姓名"`
  28. CreateTime string `description:"创建时间" json:"-"`
  29. ModifyTime string `description:"修改时间" json:"-"`
  30. }
  31. type EdbMonitorCreateUserItem struct {
  32. AdminId int `description:"管理员id"`
  33. RealName string `description:"管理员姓名"`
  34. }
  35. type EdbMonitorInfoCreateUserResp struct {
  36. List []*EdbMonitorCreateUserItem `description:"创建人信息"`
  37. }
  38. type EdbMonitorInfoListResp struct {
  39. List []*EdbMonitorInfoItem `description:"预警列表"`
  40. Paging *paging.PagingItem `description:"分页信息"`
  41. }