From 1ce040441751cee29efcb951a4670161e8f1feeb Mon Sep 17 00:00:00 2001 From: WendyYang Date: Fri, 13 Jan 2023 14:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/user/entity/enumeration/RoleEnum.java | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java new file mode 100644 index 0000000..c1ab775 --- /dev/null +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/entity/enumeration/RoleEnum.java @@ -0,0 +1,41 @@ +package com.ningdatech.pmapi.user.entity.enumeration; + +import lombok.Getter; + +/** + *

+ * 系统角色枚举 + *

+ * + * @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); + } + +}