com.didiglobal.logi.security.common.dto.resource.UserResourceQueryDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.common.dto.resource;
import lombok.Data;
/**
* @author cjm
*/
@Data
public class UserResourceQueryDTO {
private int controlLevel;
private Integer projectId;
private Integer resourceTypeId;
private Integer resourceId;
public UserResourceQueryDTO(int controlLevel, Integer projectId, Integer resourceTypeId, Integer resourceId) {
this.controlLevel = controlLevel;
this.projectId = projectId;
this.resourceTypeId = resourceTypeId;
this.resourceId = resourceId;
}
public UserResourceQueryDTO(int controlLevel, Integer projectId, Integer resourceTypeId) {
this.controlLevel = controlLevel;
this.projectId = projectId;
this.resourceTypeId = resourceTypeId;
this.resourceId = null;
}
public UserResourceQueryDTO(int controlLevel, Integer projectId) {
this.controlLevel = controlLevel;
this.projectId = projectId;
this.resourceTypeId = null;
this.resourceId = null;
}
public static UserResourceQueryDTO getOpenViewPermissionControlQueryEntity() {
// 构造查看控制权限的条件实体(全为0)
return new UserResourceQueryDTO(0, 0, 0, 0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy