|
|
|
@ -19,7 +19,7 @@ public class ResourceCreateRequest extends BaseRequest {
|
|
|
|
|
* 资源内容
|
|
|
|
|
*/
|
|
|
|
|
@NotBlank(message = "[value]资源内容不能为空")
|
|
|
|
|
@Length(min = 0, max = 100, message = "资源内容长度不合法(0-100)")
|
|
|
|
|
@Length(min = 0, max = 100, message = "[value]资源内容长度不合法(0-100)")
|
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -31,7 +31,7 @@ public class ResourceCreateRequest extends BaseRequest {
|
|
|
|
|
/**
|
|
|
|
|
* 资源类型
|
|
|
|
|
*/
|
|
|
|
|
@NotBlank(message = "[resourceType]资源类型不能为NULL")
|
|
|
|
|
@NotNull(message = "[resourceType]资源类型不能为NULL")
|
|
|
|
|
@Dict(name = "RESOURCE_TYPE")
|
|
|
|
|
private String resourceType;
|
|
|
|
|
|
|
|
|
@ -41,6 +41,17 @@ public class ResourceCreateRequest extends BaseRequest {
|
|
|
|
|
@NotNull(message = "[valid]是否有效不能为NULL")
|
|
|
|
|
private Boolean valid;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否节点
|
|
|
|
|
*/
|
|
|
|
|
@NotNull(message = "[node]是否节点不能为NULL")
|
|
|
|
|
private Boolean node;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 上级主键
|
|
|
|
|
*/
|
|
|
|
|
private Long supId;
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
@ -72,4 +83,20 @@ public class ResourceCreateRequest extends BaseRequest {
|
|
|
|
|
public void setValid(Boolean valid) {
|
|
|
|
|
this.valid = valid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean getNode() {
|
|
|
|
|
return this.node;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setNode(Boolean node) {
|
|
|
|
|
this.node = node;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getSupId() {
|
|
|
|
|
return this.supId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSupId(Long supId) {
|
|
|
|
|
this.supId = supId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|