Browse Source

增加系统角色枚举

master
WendyYang 1 year ago
parent
commit
1ce0404417
1 changed files with 41 additions and 0 deletions
  1. +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);
}

}

Loading…
Cancel
Save