cn.authing.sdk.java.dto.GetResourceAuthorizedTargetsDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of authing-java-sdk Show documentation
Show all versions of authing-java-sdk Show documentation
java backend sdk for authing
package cn.authing.sdk.java.dto;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GetResourceAuthorizedTargetsDto {
/**
* 资源
*/
@JsonProperty("resource")
private String resource;
/**
* 权限分组
*/
@JsonProperty("namespace")
private String namespace;
/**
* 目标对象类型:
* - `USER`: 用户
* - `ROLE`: 角色
* - `GROUP`: 分组
* - `DEPARTMENT`: 部门
*
*/
@JsonProperty("targetType")
private TargetType targetType;
/**
* 当前页数,从 1 开始
*/
@JsonProperty("page")
private Integer page;
/**
* 每页数目,最大不能超过 50,默认为 10
*/
@JsonProperty("limit")
private Integer limit;
public String getResource() {
return resource;
}
public void setResource(String resource) {
this.resource = resource;
}
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public TargetType getTargetType() {
return targetType;
}
public void setTargetType(TargetType targetType) {
this.targetType = targetType;
}
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
/**
* 目标对象类型:
* - `USER`: 用户
* - `ROLE`: 角色
* - `GROUP`: 分组
* - `DEPARTMENT`: 部门
*
*/
public static enum TargetType {
@JsonProperty("USER")
USER("USER"),
@JsonProperty("ROLE")
ROLE("ROLE"),
@JsonProperty("GROUP")
GROUP("GROUP"),
@JsonProperty("DEPARTMENT")
DEPARTMENT("DEPARTMENT"),
;
private String value;
TargetType(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
}