SysRole.java
1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.youjia.system.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youjia.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
/**
* 角色表(sys_role)。
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
@Schema(description = "角色")
public class SysRole extends BaseEntity {
@TableId(value = "role_id", type = IdType.AUTO)
@Schema(description = "角色 ID")
private Long roleId;
@Schema(description = "角色编码,仅大写字母 / 数字 / 下划线,创建后不可修改")
private String roleCode;
@Schema(description = "角色名称")
private String roleName;
@Schema(description = "角色描述")
private String description;
@Schema(description = "是否内置角色:1-是 0-否(内置角色不允许删除)")
private Integer isBuiltin;
@Schema(description = "默认数据域:1-全部数据 2-本部门及下级 3-本部门 4-仅本人")
private Integer defaultDataScope;
@Schema(description = "负责人用户 ID(权限审批对接)")
private Long leaderUserId;
@Schema(description = "预留扩展位:父角色 ID,后续向 RBAC1 演进时使用")
private Long parentRoleId;
@Schema(description = "显示排序,越小越靠前")
private Integer sort;
@Schema(description = "状态:1-启用 0-停用")
private Integer status;
}