You've already forked FrameTour-BE
打印机相关
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package com.ycwl.basic.model.pc.printer.entity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("print_task")
|
||||
public class PrintTaskEntity {
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@TableField("printer_id")
|
||||
private Integer printerId;
|
||||
|
||||
@TableField("status")
|
||||
private Integer status;
|
||||
|
||||
@TableField("printer_name")
|
||||
private String printerName;
|
||||
|
||||
@TableField("url")
|
||||
private String url;
|
||||
|
||||
@TableField("width")
|
||||
private Integer width;
|
||||
|
||||
@TableField("height")
|
||||
private Integer height;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
@TableField("update_time")
|
||||
private Date updateTime;
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package com.ycwl.basic.model.pc.printer.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
|
||||
@TableName("printer")
|
||||
public class PrinterEntity {
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
private String accessKey;
|
||||
private String name;
|
||||
private Long scenicId;
|
||||
private String printers;
|
||||
private String usePrinter;
|
||||
private Integer status;
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
|
||||
// Getters and Setters
|
||||
public Integer getId() { return id; }
|
||||
public void setId(Integer id) { this.id = id; }
|
||||
public String getAccessKey() { return accessKey; }
|
||||
public void setAccessKey(String accessKey) { this.accessKey = accessKey; }
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
public Long getScenicId() { return scenicId; }
|
||||
public void setScenicId(Long scenicId) { this.scenicId = scenicId; }
|
||||
public String getPrinters() { return printers; }
|
||||
public void setPrinters(String printers) { this.printers = printers; }
|
||||
public String getUsePrinter() { return usePrinter; }
|
||||
public void setUsePrinter(String usePrinter) { this.usePrinter = usePrinter; }
|
||||
public Integer getStatus() { return status; }
|
||||
public void setStatus(Integer status) { this.status = status; }
|
||||
public Date getCreateTime() { return createTime; }
|
||||
public void setCreateTime(Date createTime) { this.createTime = createTime; }
|
||||
public Date getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
package com.ycwl.basic.model.printer.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PrinterSyncReq extends WorkerAuthReqVo {
|
||||
private List<String> printers;
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package com.ycwl.basic.model.printer.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class WorkerAuthReqVo {
|
||||
private String accessKey;
|
||||
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package com.ycwl.basic.model.printer.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class PrintTaskResp {
|
||||
private Integer id;
|
||||
private Integer printerId;
|
||||
private Integer status;
|
||||
private String printerName;
|
||||
private String url;
|
||||
private Integer width;
|
||||
private Integer height;
|
||||
private Date createTime;
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
package com.ycwl.basic.model.printer.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class TaskSyncResp {
|
||||
private List<PrintTaskResp> tasks;
|
||||
}
|
Reference in New Issue
Block a user