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 java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 角色表
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2017-07-11
|
*/
|
@Data
|
@TableName("sys_role")
|
public class Role extends Model<Role> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value="id", type= IdType.AUTO)
|
private Integer id;
|
/**
|
* 序号
|
*/
|
private Integer num;
|
/**
|
* 父角色id
|
*/
|
private Integer pid;
|
/**
|
* 角色名称
|
*/
|
private String name;
|
/**
|
* 部门名称
|
*/
|
private Integer deptid;
|
/**
|
* 提示
|
*/
|
private String tips;
|
/**
|
* 保留字段(暂时没用)
|
*/
|
private Integer version;
|
/**
|
* 创建时间
|
*/
|
@TableField("create_time")
|
private Date createTime;
|
|
@TableField("system_notice_type")
|
@ApiModelProperty(value = "消息类型配置")
|
private String systemNoticeType;
|
|
@ApiModelProperty(value = "城市管理员,0否,1省,2市,3区")
|
private Integer cityRole;
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
}
|