Explorar el Código

提交地磅管理开发

zhangsan hace 2 meses
padre
commit
87bc196ee4

+ 19 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/PrinterDetailResVo.java

@@ -0,0 +1,19 @@
+package com.sckw.system.model.vo.res;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serial;
+
+/**
+ * 打印机详情响应。
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Schema(description = "打印机详情响应")
+public class PrinterDetailResVo extends PrinterPageResVo {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+}

+ 94 - 0
sckw-modules/sckw-system/src/main/java/com/sckw/system/model/vo/res/PrinterPageResVo.java

@@ -0,0 +1,94 @@
+package com.sckw.system.model.vo.res;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 打印机分页响应。
+ */
+@Data
+@Schema(description = "打印机分页响应")
+public class PrinterPageResVo implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键ID。
+     */
+    @Schema(description = "主键ID")
+    private Long id;
+
+    /**
+     * 企业ID。
+     */
+    @Schema(description = "企业ID")
+    private Long entId;
+
+    /**
+     * 企业名称。
+     */
+    @Schema(description = "企业名称")
+    private String enterpriseName;
+
+    /**
+     * 打印机名称。
+     */
+    @Schema(description = "打印机名称")
+    private String printerName;
+
+    /**
+     * 打印机类型。
+     */
+    @Schema(description = "打印机类型")
+    private String printerType;
+
+    /**
+     * 可使用寿命。
+     */
+    @Schema(description = "可使用寿命")
+    private String usefulLife;
+
+    /**
+     * 在线状态,0-离线,1-在线。
+     */
+    @Schema(description = "在线状态,0-离线,1-在线")
+    private Integer onlineStatus;
+
+    /**
+     * 在线状态名称。
+     */
+    @Schema(description = "在线状态名称")
+    private String onlineStatusName;
+
+    /**
+     * 启停状态,0-启用,1-停用。
+     */
+    @Schema(description = "启停状态,0-启用,1-停用")
+    private Integer status;
+
+    /**
+     * 启停状态名称。
+     */
+    @Schema(description = "启停状态名称")
+    private String statusName;
+
+    /**
+     * 创建时间。
+     */
+    @Schema(description = "创建时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date createTime;
+
+    /**
+     * 更新时间。
+     */
+    @Schema(description = "更新时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date updateTime;
+}