package org.springblade.modules.directive.entity;
|
|
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 com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 指令实体类
|
* @author zhongrj
|
* @time 2021-07-21
|
*/
|
@Data
|
@TableName("sys_directive")
|
public class Directive implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 指令主键id
|
*/
|
@TableId(value = "id",type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 类型
|
*/
|
@TableField("type")
|
private Integer type;
|
|
|
/**
|
* 发送人 id
|
*/
|
@TableField("send_directive_id")
|
private String sendDirectiveId;
|
|
|
/**
|
* 接收人ids 可以是多个
|
*/
|
@TableField("receive_directive_ids")
|
private String receiveDirectiveIds;
|
|
|
/**
|
* 发送指令时间
|
*/
|
@TableField("send_time")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date sendTime;
|
|
|
/**
|
* 指令内容
|
*/
|
private String content;
|
|
}
|