cn.authing.sdk.java.dto.DeleteCustomFieldDto 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 DeleteCustomFieldDto {
/**
* 主体类型,目前支持用户、角色、分组和部门
*/
@JsonProperty("targetType")
private TargetType targetType;
/**
* 字段 key,不能和内置字段的 key 冲突,**设置之后将不能进行修改**。
*/
@JsonProperty("key")
private String key;
public TargetType getTargetType() {
return targetType;
}
public void setTargetType(TargetType targetType) {
this.targetType = targetType;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
/**
* 主体类型,目前支持用户、角色、分组和部门
*/
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;
}
}
}