package jnpf.emnus; /** * 当前系统参数枚举类 * * @author JNPF开发平台组 * @version v6.0.0 * @copyright 引迈信息技术有限公司 * @date 2025/3/5 10:34:36 */ public enum SysParamEnum { USER("user", "当前用户", ""), ORG("org", "当前组织", ""), SUBORG("subOrg", "当前组织及子组织", "及子组织"), PROGENYORG("progenyOrg", "当前组织及子孙组织", "及子孙组织"), POS("pos", "当前岗位", ""), SUBPOS("subPos", "当前岗位及子岗位", "及子岗位"), PROGENYPOS("progenyPos", "当前岗位及子孙岗位", "及子孙岗位"), GROUP("group","用户组",""), ROLE("role","角色",""), ; private final String code; private final String name; private final String suffix; SysParamEnum(String code, String name, String suffix) { this.code = code; this.name = name; this.suffix = suffix; } public String getCode() { return code; } public String getName() { return name; } public String getSuffix() { return suffix; } public static SysParamEnum get(String code) { for (SysParamEnum item : SysParamEnum.values()) { if (item.getCode().equals(code)) { return item; } } return null; } }