variety.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hz_crm_api/models/data_manage/supply_analysis"
  5. )
  6. // VarietyListResp 品种列表数据返回
  7. type VarietyListResp struct {
  8. AddButton bool `description:"添加品种的权限"`
  9. Paging *paging.PagingItem
  10. List []*supply_analysis.VarietyItem
  11. }
  12. // VarietyDeleteCheckResp 品种删除检测数据返回
  13. type VarietyDeleteCheckResp struct {
  14. DeleteStatus int `description:"检测状态:0:默认值,如果为0,继续走其他校验,1:该品种已在指标库生成指标,不可删除"`
  15. TipsMsg string `description:"提示信息"`
  16. }
  17. // VarietyPlantListResp 品种装置列表数据返回
  18. type VarietyPlantListResp struct {
  19. AddButton bool `description:"添加品种的权限"`
  20. List []*supply_analysis.VarietyPlantItem
  21. }
  22. // VarietyEdbListResp 品种指标列表数据返回
  23. type VarietyEdbListResp struct {
  24. List []*supply_analysis.VarietyEdbInfoItem
  25. }
  26. // VarietyEdbDataListResp 指标数据列表返回
  27. type VarietyEdbDataListResp struct {
  28. DataTime string `description:"日期"`
  29. Value float64 `description:"数据值"`
  30. }