feat:提交角色授权

This commit is contained in:
曾文豪
2024-06-25 23:23:50 +08:00
parent aee4fa86f6
commit d77eb50a5b
7 changed files with 141 additions and 97 deletions

View File

@@ -2,9 +2,7 @@ package com.tiesheng.role.pojos.dto;
import javax.validation.constraints.NotEmpty;
public class OwerPointDTO extends ServiceDTO {
private String parent;
public class OwnerMenuDTO extends ServiceDTO {
@NotEmpty(message = "请选择一个平台")
private String platform;
@@ -13,19 +11,11 @@ public class OwerPointDTO extends ServiceDTO {
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getParent() {
return parent;
}
public void setParent(String parent) {
this.parent = parent;
}
public String getPlatform() {
public @NotEmpty(message = "请选择一个平台") String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
public void setPlatform(@NotEmpty(message = "请选择一个平台") String platform) {
this.platform = platform;
}
}

View File

@@ -0,0 +1,19 @@
package com.tiesheng.role.pojos.dto;
public class OwnerPointDTO extends OwnerMenuDTO {
private String parent;
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getParent() {
return parent;
}
public void setParent(String parent) {
this.parent = parent;
}
}