104 lines
2.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.designhub.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 角色实体类
*/
@Data
@TableName("sys_role")
public class Role implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 角色编码
*/
private String roleCode;
/**
* 角色名称
*/
private String roleName;
/**
* 角色描述
*/
private String description;
/**
* 角色级别:1-最高权限,数字越大权限越低
* 当前数据库表中无对应字段,标记为非持久化,避免 SQL 报错
*/
@TableField(exist = false)
private Integer level;
/**
* 数据权限范围:all-全部数据,dept-本部门,self-本人
* 数据库当前未存储该字段
*/
@TableField(exist = false)
private String dataScope;
/**
* 排序号
* 数据库当前未存储该字段
*/
@TableField(exist = false)
private Integer sortOrder;
/**
* 状态:0-禁用,1-启用
*/
private Integer status;
/**
* 是否内置角色:0-否,1-是(内置角色不可删除)
* 数据库当前未存储该字段
*/
@TableField(exist = false)
private Integer builtIn;
/**
* 创建人ID
* 数据库当前未存储该字段
*/
@TableField(exist = false)
private Long createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 更新人ID
* 数据库当前未存储该字段
*/
@TableField(exist = false)
private Long updateBy;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
/**
* 删除标志:0-未删除,1-已删除
*/
@TableLogic
private Integer deleted;
}