mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
fixed: 部门和资源分类的上下级更改api
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package xyz.playedu.api.request.backend;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -18,5 +19,6 @@ public class DepartmentParentRequest {
|
||||
private Integer id;
|
||||
|
||||
@NotNull(message = "参数为空")
|
||||
@JsonProperty("parent_id")
|
||||
private Integer parentId;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package xyz.playedu.api.request.backend;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -18,5 +19,6 @@ public class ResourceCategoryParentRequest {
|
||||
private Integer id;
|
||||
|
||||
@NotNull(message = "参数为空")
|
||||
@JsonProperty("parent_id")
|
||||
private Integer parentId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user