SerialSetting.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.gzlh.config.dto;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3. import lombok.Data;
  4. import lombok.NoArgsConstructor;
  5. import lombok.experimental.Accessors;
  6. import java.io.Serializable;
  7. @Data
  8. @Accessors(chain = true)
  9. public class SerialSetting implements Serializable {
  10. @JsonProperty("host")
  11. private String host;
  12. @JsonProperty("weighbridge")
  13. private Weighbridge weighbridge;
  14. @JsonProperty("led")
  15. private LedDTO led;
  16. @JsonProperty("plc")
  17. private PlcDTO plc;
  18. @JsonProperty("electron")
  19. private ElectronSetting electron;
  20. @Data
  21. public static class ElectronSetting{
  22. private Boolean enable;
  23. private int port;
  24. private Integer brand;
  25. }
  26. @Data
  27. @NoArgsConstructor
  28. public static class Weighbridge{
  29. private Boolean enable;
  30. private int port;
  31. private Integer brand;
  32. private Integer minKg=1000;
  33. }
  34. @Data
  35. @NoArgsConstructor
  36. public static class LedDTO{
  37. private Boolean enable;
  38. private int port;
  39. private Integer brand;
  40. }
  41. @Data
  42. @NoArgsConstructor
  43. public static class PlcDTO{
  44. private Boolean enable;
  45. private int port;
  46. private Integer brand;
  47. private OutDTO out;
  48. private StatusDTO status;
  49. @Data
  50. @Accessors(chain = true)
  51. public static class OutDTO{
  52. private String signalRedPoint;
  53. private String signalGreenPoint;
  54. private String gatePoint;
  55. }
  56. @Data
  57. @Accessors(chain = true)
  58. public static class StatusDTO{
  59. private String upPoint;
  60. private String downPoint;
  61. private String radarPoint;
  62. private String fRedPoint;
  63. private String bRedPoint;
  64. }
  65. }
  66. }