package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiOperation;
|
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2024-07-03
|
*/
|
@TableName("t_device")
|
public class TDevice extends Model<TDevice> {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 序列号
|
*/
|
@ApiModelProperty("序列号")
|
private String serNum;
|
/**
|
* 绑定用户ID
|
*/
|
private Integer bindId;
|
/**
|
* 绑定时间
|
*/
|
@ApiModelProperty("绑定时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date bindTime;
|
/**
|
* 0未连接1已连接
|
*/
|
@ApiModelProperty("0未连接1已连接")
|
private Integer status;
|
/**
|
* mac地址
|
*/
|
@ApiModelProperty("mac地址")
|
private String mac;
|
@ApiModelProperty("version")
|
private String version;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getSerNum() {
|
return serNum;
|
}
|
|
public void setSerNum(String serNum) {
|
this.serNum = serNum;
|
}
|
|
public Integer getBindId() {
|
return bindId;
|
}
|
|
public void setBindId(Integer bindId) {
|
this.bindId = bindId;
|
}
|
|
public Date getBindTime() {
|
return bindTime;
|
}
|
|
public void setBindTime(Date bindTime) {
|
this.bindTime = bindTime;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public String getMac() {
|
return mac;
|
}
|
|
public void setMac(String mac) {
|
this.mac = mac;
|
}
|
|
public String getVersion() {
|
return version;
|
}
|
|
public void setVersion(String version) {
|
this.version = version;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "TDevice{" +
|
"id=" + id +
|
", serNum=" + serNum +
|
", bindId=" + bindId +
|
", bindTime=" + bindTime +
|
", status=" + status +
|
", mac=" + mac +
|
", version=" + version +
|
"}";
|
}
|
}
|