style: 优化部分代码格式及注释

This commit is contained in:
2023-10-10 22:37:24 +08:00
parent 698a7251b7
commit 3a176ac5ef
36 changed files with 220 additions and 220 deletions

View File

@@ -62,9 +62,9 @@ public class UserInfoVO implements Serializable {
private String nickname;
/**
* 性别0未知12
* 性别
*/
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
private GenderEnum gender;
/**

View File

@@ -61,7 +61,7 @@ public class DeptDO extends BaseDO {
private Integer sort;
/**
* 状态1启用2禁用
* 状态
*/
private DisEnableStatusEnum status;

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -54,7 +54,7 @@ public class UserDO extends BaseDO {
private String password;
/**
* 性别0未知12
* 性别
*/
private GenderEnum gender;
@@ -79,7 +79,7 @@ public class UserDO extends BaseDO {
private String description;
/**
* 状态1启用2禁用
* 状态
*/
private DisEnableStatusEnum status;

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;
/**

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -50,9 +50,9 @@ public class UpdateBasicInfoRequest implements Serializable {
private String nickname;
/**
* 性别0未知 1男 2女
* 性别
*/
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@NotNull(message = "性别非法")
private GenderEnum gender;
}

View File

@@ -78,9 +78,9 @@ public class UserRequest extends BaseRequest {
private String phone;
/**
* 性别0未知12
* 性别
*/
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@Schema(description = "性别0未知12", 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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
/**

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
/**

View File

@@ -61,9 +61,9 @@ public class UserDetailVO extends BaseDetailVO {
private String nickname;
/**
* 性别0未知12
* 性别
*/
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@Schema(description = "性别0未知12", 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;

View File

@@ -54,9 +54,9 @@ public class UserVO extends BaseVO {
private String nickname;
/**
* 性别0未知12
* 性别
*/
@Schema(description = "性别0未知12", type = "Integer", allowableValues = {"0", "1", "2"}, example = "1")
@Schema(description = "性别0未知12", 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;
/**

View File

@@ -33,7 +33,7 @@ public interface RoleDeptService {
* 部门 ID 列表
* @param roleId
* 角色 ID
* @return true成功false无变更/失败
* @return true成功false无变更/失败
*/
boolean save(List<Long> deptIds, Long roleId);

View File

@@ -33,7 +33,7 @@ public interface RoleMenuService {
* 菜单 ID 列表
* @param roleId
* 角色 ID
* @return true成功false无变更/失败
* @return true成功false无变更/失败
*/
boolean save(List<Long> menuIds, Long roleId);

View File

@@ -33,7 +33,7 @@ public interface UserRoleService {
* 角色 ID 列表
* @param userId
* 用户 ID
* @return true成功false无变更/失败
* @return true成功false无变更/失败
*/
boolean save(List<Long> roleIds, Long userId);