package com.ydtech.modules.admin.constants; import lombok.AllArgsConstructor; import lombok.Data; import lombok.Getter; @AllArgsConstructor @Getter public enum RoleConstants { R01("1","admin","15,16,17,18,22,23,24,25,28,29,30,31,32,38"), R02("2","初始用户","22"), R15("15","分公司运营总监","16,17,18,22,23,24,25,28,29,30,31,32,38"), R16("16","支公司运营总监","17,18,22,23,24,25,28,29,30,31,32,38"), R17("17","部长","18,22,23,24,25,28,29,30,31,32,38"), R18("18","门店长","22,23,24,25,28,29,30,31,32,38"), R19("19","出单员","22"), R20("20","代理人","22"), R21("21","团队长","17,18,22,23,24,25,28,29,30,31,32,38"), R22("22","后线人员","22"), R23("23","运营总监","17,18,22,23,24,25,28,29,30,31,32,38"), R24("24","系统管理员","17,18,22,23,24,25,28,29,30,31,32,38"), R25("25","人员管理","17,18,22,23,24,25,28,29,30,31,32,38"), R28("28","财务专员","22"), R29("29","总公司最高管理权限","17,18,22,23,24,25,28,29,30,31,32,38"), R30("30","核保部门","22"), R31("31","总公司人事行政部","22"), R32("32","财务部门","22"), R38("38","运营管理权限","22"); private final String code; private final String name; private final String roleIds; public static RoleConstants getRoleConstants(String code) { for (RoleConstants roleConstants : RoleConstants.values()) { if (roleConstants.getCode().equals(code)) { return roleConstants; } } return null; } }