角色查询参数修改

This commit is contained in:
yangsong 2023-09-08 19:03:37 +08:00
parent 2eb2573fa4
commit c3df852c7f
2 changed files with 29 additions and 37 deletions

View File

@ -0,0 +1,29 @@
package cn.axzo.tyr.client.model.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.HashMap;
import java.util.Map;
@Getter
@AllArgsConstructor
public enum RoleLevel {
WORKSPACE(1, "工作台"),
GROUP(2, "角色分组"),
ROLE(3, "角色"),
;
private Integer code;
private String desc;
private static final Map<Integer, RoleLevel> MAPPING = new HashMap<>();
static {
for (RoleLevel level : RoleLevel.values()) {
MAPPING.put(level.code, level);
}
}
public static RoleLevel apply(Integer code) {
return code == null ? null :MAPPING.get(code);
}
}

View File

@ -1,6 +1,5 @@
package cn.axzo.tyr.client.model.req;
import cn.axzo.tyr.client.model.enums.IdentityType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@ -19,49 +18,13 @@ public class QuerySaasRoleReq {
*/
private List<Long> ids;
/**
* 角色名称
*/
private String name;
/**
* 角色类型common 自定义角色 admin管理员 init标准角色
*/
private String roleType;
/**
* 工作台类型code
*/
private Integer workspaceTypeCode;
/**
* 身份Id
*/
private Long identityId;
/**
* 身份类型 1:工人 2:从业人员 3:班组长 4:运营人员 5:政务人员
*/
private IdentityType identityType;
/**
* 创建者
*/
private Long createBy;
/**
* 更新者
*/
private Long updateBy;
/**
* 分组id
*/
private List<Long> sassRoleGroupIds;
/**
* 权限组id
*/
private List<Long> saasPermissionGroupIds;
}