mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-14 05:01:37 +08:00
style: 优化部分代码格式及注释
This commit is contained in:
@@ -62,9 +62,9 @@ public class UserInfoVO implements Serializable {
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 性别(0:未知,1:男,2:女)
|
||||
* 性别
|
||||
*/
|
||||
@Schema(description = "性别(0:未知,1:男,2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@Schema(description = "性别(0:未知;1:男;2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
private GenderEnum gender;
|
||||
|
||||
/**
|
||||
|
@@ -61,7 +61,7 @@ public class DeptDO extends BaseDO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -47,7 +47,7 @@ public class MenuDO extends BaseDO {
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 菜单类型(1:目录,2:菜单,3:按钮)
|
||||
* 菜单类型
|
||||
*/
|
||||
private MenuTypeEnum type;
|
||||
|
||||
@@ -97,7 +97,7 @@ public class MenuDO extends BaseDO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
private DisEnableStatusEnum status;
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ public class RoleDO extends BaseDO {
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
|
||||
* 数据权限
|
||||
*/
|
||||
private DataScopeEnum dataScope;
|
||||
|
||||
@@ -62,7 +62,7 @@ public class RoleDO extends BaseDO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -54,7 +54,7 @@ public class UserDO extends BaseDO {
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 性别(0:未知,1:男,2:女)
|
||||
* 性别
|
||||
*/
|
||||
private GenderEnum gender;
|
||||
|
||||
@@ -79,7 +79,7 @@ public class UserDO extends BaseDO {
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -45,9 +45,9 @@ public class DeptQuery implements Serializable {
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", example = "1")
|
||||
@Query
|
||||
private Integer status;
|
||||
}
|
||||
|
@@ -45,9 +45,9 @@ public class MenuQuery implements Serializable {
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", example = "1")
|
||||
@Query
|
||||
private Integer status;
|
||||
}
|
||||
|
@@ -44,9 +44,9 @@ public class RoleQuery implements Serializable {
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", example = "1")
|
||||
@Query
|
||||
private Integer status;
|
||||
}
|
||||
|
@@ -51,9 +51,9 @@ public class UserQuery implements Serializable {
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", example = "1")
|
||||
@Query
|
||||
private Integer status;
|
||||
|
||||
|
@@ -74,9 +74,9 @@ public class DeptRequest extends BaseRequest {
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态(1启用 2禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
/**
|
||||
|
@@ -45,9 +45,9 @@ public class MenuRequest extends BaseRequest {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 菜单类型(1目录 2菜单 3按钮)
|
||||
* 菜单类型
|
||||
*/
|
||||
@Schema(description = "菜单类型(1:目录,2:菜单,3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
||||
@Schema(description = "菜单类型(1:目录;2:菜单;3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
||||
@NotNull(message = "菜单类型非法")
|
||||
private MenuTypeEnum type;
|
||||
|
||||
@@ -127,8 +127,8 @@ public class MenuRequest extends BaseRequest {
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 状态(1启用 2禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
}
|
||||
|
@@ -83,9 +83,9 @@ public class RoleRequest extends BaseRequest {
|
||||
private List<Long> menuIds = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
|
||||
* 数据权限
|
||||
*/
|
||||
@Schema(description = "数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)", type = "Integer",
|
||||
@Schema(description = "数据权限(1:全部数据权限;2:本部门及以下数据权限;3:本部门数据权限;4:仅本人数据权限;5:自定义数据权限)", type = "Integer",
|
||||
allowableValues = {"1", "2", "3", "4", "5"}, example = "5")
|
||||
private DataScopeEnum dataScope;
|
||||
|
||||
@@ -96,8 +96,8 @@ public class RoleRequest extends BaseRequest {
|
||||
private List<Long> deptIds = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
}
|
||||
|
@@ -50,9 +50,9 @@ public class UpdateBasicInfoRequest implements Serializable {
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 性别(0未知 1男 2女)
|
||||
* 性别
|
||||
*/
|
||||
@Schema(description = "性别(0:未知,1:男,2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@Schema(description = "性别(0:未知;1:男;2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@NotNull(message = "性别非法")
|
||||
private GenderEnum gender;
|
||||
}
|
||||
|
@@ -78,9 +78,9 @@ public class UserRequest extends BaseRequest {
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 性别(0:未知,1:男,2:女)
|
||||
* 性别
|
||||
*/
|
||||
@Schema(description = "性别(0:未知,1:男,2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@Schema(description = "性别(0:未知;1:男;2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@NotNull(message = "性别非法")
|
||||
private GenderEnum gender;
|
||||
|
||||
@@ -106,8 +106,8 @@ public class UserRequest extends BaseRequest {
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
}
|
||||
|
@@ -62,11 +62,11 @@ public class AnnouncementVO extends BaseVO {
|
||||
private LocalDateTime terminateTime;
|
||||
|
||||
/**
|
||||
* 状态(1:待发布,2:已发布,3:已过期)
|
||||
* 状态
|
||||
*
|
||||
* @return 公告状态
|
||||
*/
|
||||
@Schema(description = "状态(1:待发布,2:已发布,3:已过期)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "1")
|
||||
@Schema(description = "状态(1:待发布;2:已发布;3:已过期)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "1")
|
||||
public AnnouncementStatusEnum getStatus() {
|
||||
if (null != this.effectiveTime && this.effectiveTime.isAfter(LocalDateTime.now())) {
|
||||
return AnnouncementStatusEnum.PENDING_RELEASE;
|
||||
|
@@ -69,9 +69,9 @@ public class DeptDetailVO extends BaseDetailVO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class)
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -56,9 +56,9 @@ public class DeptVO extends BaseVO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
/**
|
||||
|
@@ -79,9 +79,9 @@ public class MenuVO extends BaseVO {
|
||||
private String component;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class)
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
@@ -121,9 +121,9 @@ public class MenuVO extends BaseVO {
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 菜单类型(1:目录,2:菜单,3:按钮)
|
||||
* 菜单类型
|
||||
*/
|
||||
@Schema(description = "菜单类型(1:目录,2:菜单,3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
||||
@Schema(description = "菜单类型(1:目录;2:菜单;3:按钮)", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
|
||||
@ExcelProperty(value = "菜单类型", converter = ExcelBaseEnumConverter.class)
|
||||
private MenuTypeEnum type;
|
||||
|
||||
|
@@ -58,9 +58,9 @@ public class RoleDetailVO extends BaseDetailVO {
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
|
||||
* 数据权限
|
||||
*/
|
||||
@Schema(description = "数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)", type = "Integer",
|
||||
@Schema(description = "数据权限(1:全部数据权限;2:本部门及以下数据权限;3:本部门数据权限;4:仅本人数据权限;5:自定义数据权限)", type = "Integer",
|
||||
allowableValues = {"1", "2", "3", "4", "5"}, example = "5")
|
||||
@ExcelProperty(value = "数据权限", converter = ExcelBaseEnumConverter.class)
|
||||
private DataScopeEnum dataScope;
|
||||
@@ -73,9 +73,9 @@ public class RoleDetailVO extends BaseDetailVO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", example = "1")
|
||||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class)
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -49,9 +49,9 @@ public class RoleVO extends BaseVO {
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
|
||||
* 数据权限
|
||||
*/
|
||||
@Schema(description = "数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)", type = "Integer",
|
||||
@Schema(description = "数据权限(1:全部数据权限;2:本部门及以下数据权限;3:本部门数据权限;4:仅本人数据权限;5:自定义数据权限)", type = "Integer",
|
||||
allowableValues = {"1", "2", "3", "4", "5"}, example = "5")
|
||||
private DataScopeEnum dataScope;
|
||||
|
||||
@@ -62,9 +62,9 @@ public class RoleVO extends BaseVO {
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
/**
|
||||
|
@@ -61,9 +61,9 @@ public class UserDetailVO extends BaseDetailVO {
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 性别(0:未知,1:男,2:女)
|
||||
* 性别
|
||||
*/
|
||||
@Schema(description = "性别(0:未知,1:男,2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@Schema(description = "性别(0:未知;1:男;2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@ExcelProperty(value = "性别", converter = ExcelBaseEnumConverter.class)
|
||||
private GenderEnum gender;
|
||||
|
||||
@@ -90,9 +90,9 @@ public class UserDetailVO extends BaseDetailVO {
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class)
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
|
@@ -54,9 +54,9 @@ public class UserVO extends BaseVO {
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 性别(0:未知,1:男,2:女)
|
||||
* 性别
|
||||
*/
|
||||
@Schema(description = "性别(0:未知,1:男,2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
@Schema(description = "性别(0:未知;1:男;2:女)", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
|
||||
private GenderEnum gender;
|
||||
|
||||
/**
|
||||
@@ -79,9 +79,9 @@ public class UserVO extends BaseVO {
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,2:禁用)
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态(1:启用,2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
@Schema(description = "状态(1:启用;2:禁用)", type = "Integer", allowableValues = {"1", "2"}, example = "1")
|
||||
private DisEnableStatusEnum status;
|
||||
|
||||
/**
|
||||
|
@@ -33,7 +33,7 @@ public interface RoleDeptService {
|
||||
* 部门 ID 列表
|
||||
* @param roleId
|
||||
* 角色 ID
|
||||
* @return true:成功,false:无变更/失败
|
||||
* @return true:成功;false:无变更/失败
|
||||
*/
|
||||
boolean save(List<Long> deptIds, Long roleId);
|
||||
|
||||
|
@@ -33,7 +33,7 @@ public interface RoleMenuService {
|
||||
* 菜单 ID 列表
|
||||
* @param roleId
|
||||
* 角色 ID
|
||||
* @return true:成功,false:无变更/失败
|
||||
* @return true:成功;false:无变更/失败
|
||||
*/
|
||||
boolean save(List<Long> menuIds, Long roleId);
|
||||
|
||||
|
@@ -33,7 +33,7 @@ public interface UserRoleService {
|
||||
* 角色 ID 列表
|
||||
* @param userId
|
||||
* 用户 ID
|
||||
* @return true:成功,false:无变更/失败
|
||||
* @return true:成功;false:无变更/失败
|
||||
*/
|
||||
boolean save(List<Long> roleIds, Long userId);
|
||||
|
||||
|
Reference in New Issue
Block a user