package xiaozhi.modules.device.entity; import java.util.Date; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) @TableName("ai_device_address_book") @Schema(description = "设备通讯录") public class DeviceAddressBookEntity { @TableId(type = IdType.INPUT) @Schema(description = "本设备MAC地址") private String macAddress; @Schema(description = "对方设备MAC地址") private String targetMac; @Schema(description = "我对对方的称呼") private String alias; @Schema(description = "是否有权限呼叫") private Boolean hasPermission; @TableField(fill = FieldFill.INSERT) @Schema(description = "创建人") private Long creator; @TableField(fill = FieldFill.INSERT) @Schema(description = "创建时间") private Date createDate; @TableField(fill = FieldFill.INSERT_UPDATE) @Schema(description = "更新人") private Long updater; @TableField(fill = FieldFill.INSERT_UPDATE) @Schema(description = "更新时间") private Date updateDate; }