This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
liushuai
/
hz-project-management
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
36
Wiki
Activity
Browse Source
增加系统角色枚举
tags/24080901
WendyYang
2 years ago
parent
99a9d0a6bd
commit
1ce0404417
1 changed files
with
41 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+41
-0
pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java
+ 41
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java
View File
@@ -0,0 +1,41 @@
package com.ningdatech.pmapi.user.entity.enumeration;
import lombok.Getter;
/**
* <p>
* 系统角色枚举
* </p>
*
* @author WendyYang
* @since 14:15 2023/1/13
*/
@Getter
public enum RoleEnum {
/**
* 系统角色枚举
*/
ORDINARY_USER("普通用户"),
EXPERT("专家"),
ORG_ADMIN("单位管理员"),
EXPERT_ADMIN("专家管理员"),
REGION_ADMIN("区域管理员"),
SUPER_ADMIN("超级管理员");
private final String desc;
RoleEnum(String desc) {
this.desc = desc;
}
public boolean eq(String name) {
return this.name().equals(name);
}
}
Write
Preview
Loading…
Cancel
Save