DeviceOpenApiDTO.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.xy.open.dto;
  2. import com.xy.utils.PageBean;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import lombok.experimental.Accessors;
  6. import javax.validation.constraints.NotEmpty;
  7. import javax.validation.constraints.NotNull;
  8. import java.util.List;
  9. /**
  10. * 设备DTO
  11. */
  12. public class DeviceOpenApiDTO {
  13. /**
  14. * 根据商户编码获取商户设备列表
  15. */
  16. @Data
  17. @Accessors(chain = true)
  18. public static class DeviceListGet {
  19. @ApiModelProperty(value = "分页对象", required = true)
  20. private PageBean page;
  21. @NotEmpty(message = "商户编码不可为空")
  22. @ApiModelProperty(value = "商户编码不可为空", required = true)
  23. private List<String> mercCodes;
  24. }
  25. @Data
  26. @Accessors(chain = true)
  27. public static class DeviceOperate {
  28. @NotNull(message = "设备ID")
  29. @ApiModelProperty(value = "设备ID", required = true)
  30. private Long deviceId;
  31. @NotNull(message = "操作类型")
  32. @ApiModelProperty(value = "操作类型(开打印机门锁:openPrinterLock)", required = true)
  33. private String action;
  34. }
  35. @Data
  36. @Accessors(chain = true)
  37. public static class DeviceOperateResult {
  38. @ApiModelProperty(value = "请求结果(成功:true,失败:false)")
  39. private Boolean result;
  40. }
  41. }