mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-11 06:57:12 +08:00
style: 优化部分代码格式及注释
This commit is contained in:
@@ -95,7 +95,7 @@ public class LoginUser implements Serializable {
|
||||
/**
|
||||
* 是否为管理员
|
||||
*
|
||||
* @return true:是,false:否
|
||||
* @return true:是;false:否
|
||||
*/
|
||||
public boolean isAdmin() {
|
||||
if (CollUtil.isEmpty(roleCodes)) {
|
||||
|
@@ -44,7 +44,7 @@ public class RoleDTO implements Serializable {
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
|
||||
* 数据权限
|
||||
*/
|
||||
private DataScopeEnum dataScope;
|
||||
}
|
||||
|
@@ -39,9 +39,9 @@ public class UpdateStatusRequest implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 状态(1启用 2禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@NotNull(message = "状态非法")
|
||||
private DisEnableStatusEnum status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user