package com.sinata.modular.system.model;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 通知表
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2017-07-11
|
*/
|
@Data
|
@TableName("sys_notice")
|
public class Notice extends Model<Notice> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value="id", type= IdType.AUTO)
|
private Integer id;
|
/**
|
* 标题
|
*/
|
private String title;
|
/**
|
* 类型
|
*/
|
private Integer type;
|
/**
|
* 内容
|
*/
|
private String content;
|
/**
|
* 创建时间
|
*/
|
@DateTimeFormat
|
private Date createtime;
|
|
private Date begin_time;
|
|
private Date end_time;
|
/**
|
* 创建人
|
*/
|
private Integer creater;
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|