|
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -24,6 +25,7 @@ public class CreateRoleReq implements Serializable {
|
|
|
@ApiModelProperty(value = "上级角色code")
|
|
|
private String parentRoleCode;
|
|
|
|
|
|
+ @Size(max = 50, message = "角色描述超过50字符")
|
|
|
@ApiModelProperty(value = "角色描述")
|
|
|
private String roleDesc;
|
|
|
|