feat: 添加打印机管理模块,支持局域网打印
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-29 06:38:27 +00:00
parent de0a9c1fa7
commit 4dddae325c
6 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
package com.example.building.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 打印机实体
*/
@Data
@TableName("printers")
public class Printer {
@TableId(type = IdType.ASSIGN_UUID)
private String printerId;
/**
* 打印机名称
*/
private String name;
/**
* IP地址
*/
private String ip;
/**
* 端口
*/
private Integer port;
/**
* 是否默认 0-否 1-是
*/
private Integer isDefault;
/**
* 状态 0-禁用 1-启用
*/
private Integer status;
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdAt;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedAt;
}