variety.go 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package request
  2. // AddVarietyReq 添加品种请求
  3. type AddVarietyReq struct {
  4. VarietyName string `description:"品种名称"`
  5. AdminIdList []int `description:"有权限用户"`
  6. }
  7. // EditVarietyReq 编辑品种请求
  8. type EditVarietyReq struct {
  9. VarietyId int `description:"品种id"`
  10. VarietyName string `description:"品种名称"`
  11. AdminIdList []int `description:"有权限用户"`
  12. }
  13. // DelVarietyReq 删除品种请求
  14. type DelVarietyReq struct {
  15. VarietyId int `description:"品种id"`
  16. }
  17. // AnalysisReq 分析品种请求
  18. type AnalysisReq struct {
  19. VarietyId int `description:"品种id"`
  20. }
  21. // AddVarietyPlantReq 添加品种装置请求
  22. type AddVarietyPlantReq struct {
  23. VarietyId int `description:"品种id"`
  24. Province string `description:"所属省份"`
  25. City string `description:"所属城市"`
  26. FactoryName string `description:"工厂名称"`
  27. PlantName string `description:"装置/产线名称"`
  28. MaintenanceDate string `description:"检修日期"`
  29. ResumptionDate string `description:"复产日期"`
  30. AnnualCapacity float64 `description:"年产能"`
  31. Coefficient float64 `description:"降负系数"`
  32. AverageDailyCapacityReduction float64 `description:"日均产量减量"`
  33. IsStop int `description:"是否停产,0:未停产;1:停产;默认未停产"`
  34. PrevVarietyPlantId int `description:"上一个品种装置id"`
  35. NextVarietyPlantId int `description:"下一个品种装置id"`
  36. }
  37. // EditVarietyPlantReq 编辑品种装置请求
  38. type EditVarietyPlantReq struct {
  39. VarietyPlantId int `description:"品种装置id"`
  40. Province string `description:"所属省份"`
  41. City string `description:"所属城市"`
  42. FactoryName string `description:"工厂名称"`
  43. PlantName string `description:"装置/产线名称"`
  44. MaintenanceDate string `description:"检修日期"`
  45. ResumptionDate string `description:"复产日期"`
  46. AnnualCapacity float64 `description:"年产能"`
  47. Coefficient float64 `description:"降负系数"`
  48. AverageDailyCapacityReduction float64 `description:"日均产量减量"`
  49. IsStop int `description:"是否停产,0:未停产;1:停产;默认未停产"`
  50. }
  51. // DeleteVarietyPlantReq 删除品种装置请求
  52. type DeleteVarietyPlantReq struct {
  53. VarietyPlantId int `description:"品种装置id"`
  54. }
  55. type AddEdbInfoReq struct {
  56. VarietyEdbId int `description:"指标id"`
  57. EdbName string `description:"指标名称"`
  58. Frequency string `description:"频率"`
  59. Unit string `description:"单位"`
  60. ClassifyId int `description:"分类id"`
  61. }
  62. // CopyVarietyPlantReq 复制品种装置请求
  63. type CopyVarietyPlantReq struct {
  64. VarietyId int `description:"品种id"`
  65. PrevVarietyPlantId int `description:"上一个品种装置id"`
  66. VarietyPlantIdList []int `description:"品种装置id列表"`
  67. }
  68. // ModifyProductionDayReq 编辑品种的生产天数请求
  69. type ModifyProductionDayReq struct {
  70. VarietyId int `description:"品种id"`
  71. Day int `description:"生产天数"`
  72. }