Skip to content

Commit

Permalink
style: 优化部分代码格式及注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Oct 10, 2023
1 parent 698a725 commit 3a176ac
Show file tree
Hide file tree
Showing 36 changed files with 220 additions and 220 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class LoginUser implements Serializable {
/**
* 是否为管理员
*
* @return true:是false:否
* @return true:是false:否
*/
public boolean isAdmin() {
if (CollUtil.isEmpty(roleCodes)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class RoleDTO implements Serializable {
private String code;

/**
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
* 数据权限
*/
private DataScopeEnum dataScope;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class LogDO implements Serializable {
private Long elapsedTime;

/**
* 操作状态(1:成功,2:失败)
* 操作状态
*/
private LogStatusEnum status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public class LoginLogQuery implements Serializable {
private static final long serialVersionUID = 1L;

/**
* 登录状态(1:成功,2:失败)
* 登录状态
*/
@Schema(description = "登录状态(1:成功2:失败)", example = "1")
@Schema(description = "登录状态(1:成功2:失败)", example = "1")
@Query
private Integer status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public class OperationLogQuery implements Serializable {
private String description;

/**
* 操作状态(1:成功,2:失败)
* 操作状态
*/
@Schema(description = "操作状态(1:成功2:失败)", example = "1")
@Schema(description = "操作状态(1:成功2:失败)", example = "1")
@Query
private Integer status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class LoginLogVO extends LogVO {
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 LogStatusEnum status;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public class OperationLogVO extends LogVO {
private String module;

/**
* 操作状态(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 LogStatusEnum status;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class DeptDO extends BaseDO {
private Integer sort;

/**
* 状态(1:启用,2:禁用)
* 状态
*/
private DisEnableStatusEnum status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class MenuDO extends BaseDO {
private Long parentId;

/**
* 菜单类型(1:目录,2:菜单,3:按钮)
* 菜单类型
*/
private MenuTypeEnum type;

Expand Down Expand Up @@ -97,7 +97,7 @@ public class MenuDO extends BaseDO {
private Integer sort;

/**
* 状态(1:启用,2:禁用)
* 状态
*/
private DisEnableStatusEnum status;
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class RoleDO extends BaseDO {
private String code;

/**
* 数据权限(1:全部数据权限,2:本部门及以下数据权限,3:本部门数据权限,4:仅本人数据权限,5:自定义数据权限)
* 数据权限
*/
private DataScopeEnum dataScope;

Expand All @@ -62,7 +62,7 @@ public class RoleDO extends BaseDO {
private Integer sort;

/**
* 状态(1:启用,2:禁用)
* 状态
*/
private DisEnableStatusEnum status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class UserDO extends BaseDO {
private String password;

/**
* 性别(0:未知,1:男,2:女)
* 性别
*/
private GenderEnum gender;

Expand All @@ -79,7 +79,7 @@ public class UserDO extends BaseDO {
private String description;

/**
* 状态(1:启用,2:禁用)
* 状态
*/
private DisEnableStatusEnum status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
Loading

0 comments on commit 3a176ac

Please sign in to comment.