大写
This commit is contained in:
@@ -64,11 +64,11 @@ public interface AuthService {
|
||||
/**
|
||||
* @description 简单校验 token 是否有效(用于快速判断是否已登录)
|
||||
* @param token 鉴权 token
|
||||
* @return ResultDomain<Boolean> true 表示有效/已登录,false 表示无效/未登录
|
||||
* @return ResultDomain<BOOLEAN> true 表示有效/已登录,false 表示无效/未登录
|
||||
* @author yslg
|
||||
* @since 2025-11-03
|
||||
*/
|
||||
ResultDomain<Boolean> isTokenValid(String token);
|
||||
ResultDomain<BOOLEAN> isTokenValid(String token);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public interface FileService {
|
||||
* @author yslg
|
||||
* @since 2025-11-03
|
||||
*/
|
||||
ResultDomain<Boolean> deleteFile(String fileId);
|
||||
ResultDomain<BOOLEAN> deleteFile(String fileId);
|
||||
|
||||
/**
|
||||
* @description 批量删除文件(逻辑删除)
|
||||
|
||||
@@ -23,7 +23,7 @@ public class TbSysLogDTO extends BaseDTO {
|
||||
private String logId;
|
||||
|
||||
@Schema(description = "日志类型")
|
||||
private Integer type;
|
||||
private INTEGER type;
|
||||
|
||||
@Schema(description = "日志级别")
|
||||
private String level;
|
||||
|
||||
@@ -46,10 +46,10 @@ public class TbSysLoginLogDTO extends BaseDTO {
|
||||
private Date loginTime;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
private INTEGER status;
|
||||
|
||||
@Schema(description = "错误次数")
|
||||
private Integer errorCount;
|
||||
private INTEGER errorCount;
|
||||
|
||||
@Schema(description = "消息")
|
||||
private String message;
|
||||
|
||||
@@ -38,6 +38,6 @@ public class TbMessageChannelDTO extends BaseDTO {
|
||||
private String status;
|
||||
|
||||
@Schema(description = "优先级(数字越大优先级越高)")
|
||||
private Integer priority;
|
||||
private INTEGER priority;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ public interface MessageService {
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteMessage(String messageId);
|
||||
ResultDomain<BOOLEAN> deleteMessage(String messageId);
|
||||
|
||||
/**
|
||||
* @description 发送消息
|
||||
|
||||
@@ -44,5 +44,5 @@ public class MessageRangeChannelVO extends BaseVO {
|
||||
private String channelStatus;
|
||||
|
||||
@Schema(description = "渠道优先级(数字越大优先级越高)")
|
||||
private Integer channelPriority;
|
||||
private INTEGER channelPriority;
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ public interface DeptRoleService {
|
||||
/**
|
||||
* @description 根据ID删除部门
|
||||
* @param deptDTO 部门DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteDept(TbSysDeptDTO deptDTO);
|
||||
ResultDomain<BOOLEAN> deleteDept(TbSysDeptDTO deptDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询部门
|
||||
@@ -103,11 +103,11 @@ public interface DeptRoleService {
|
||||
/**
|
||||
* @description 根据ID删除角色
|
||||
* @param roleDTO 角色DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteRole(TbSysRoleDTO roleDTO);
|
||||
ResultDomain<BOOLEAN> deleteRole(TbSysRoleDTO roleDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询角色
|
||||
@@ -176,11 +176,11 @@ public interface DeptRoleService {
|
||||
/**
|
||||
* @description 根据ID删除部门角色关联
|
||||
* @param deptRoleDTO 部门角色DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteDeptRole(TbSysDeptRoleDTO deptRoleDTO);
|
||||
ResultDomain<BOOLEAN> deleteDeptRole(TbSysDeptRoleDTO deptRoleDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询部门角色关联
|
||||
|
||||
@@ -38,11 +38,11 @@ public interface ModulePermissionService {
|
||||
/**
|
||||
* @description 根据ID删除模块
|
||||
* @param moduleDTO 模块DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteModule(TbSysModuleDTO moduleDTO);
|
||||
ResultDomain<BOOLEAN> deleteModule(TbSysModuleDTO moduleDTO);
|
||||
|
||||
/**
|
||||
* @description 获取模块分页数据
|
||||
@@ -84,11 +84,11 @@ public interface ModulePermissionService {
|
||||
/**
|
||||
* @description 根据ID删除权限
|
||||
* @param permissionDTO 权限DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deletePermission(TbSysPermissionDTO permissionDTO);
|
||||
ResultDomain<BOOLEAN> deletePermission(TbSysPermissionDTO permissionDTO);
|
||||
|
||||
/**
|
||||
* @description 根据模块ID获取权限列表
|
||||
|
||||
@@ -35,11 +35,11 @@ public interface SysConfigService {
|
||||
/**
|
||||
* @description 根据ID删除系统配置
|
||||
* @param configDTO 系统配置DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteConfig(TbSysConfigDTO configDTO);
|
||||
ResultDomain<BOOLEAN> deleteConfig(TbSysConfigDTO configDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询系统配置
|
||||
|
||||
@@ -39,11 +39,11 @@ public interface SysUserService {
|
||||
/**
|
||||
* @description 根据ID删除用户
|
||||
* @param TbSysUserDTO userDTO 用户DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteUser(TbSysUserDTO userDTO);
|
||||
ResultDomain<BOOLEAN> deleteUser(TbSysUserDTO userDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询用户
|
||||
@@ -95,11 +95,11 @@ public interface SysUserService {
|
||||
* @param userId 用户ID
|
||||
* @param oldPassword 旧密码
|
||||
* @param newPassword 新密码
|
||||
* @return ResultDomain<Boolean> 更新结果
|
||||
* @return ResultDomain<BOOLEAN> 更新结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> updateUserPassword(String userId, String oldPassword, String newPassword);
|
||||
ResultDomain<BOOLEAN> updateUserPassword(String userId, String oldPassword, String newPassword);
|
||||
|
||||
/**
|
||||
* @description 重置用户密码
|
||||
@@ -114,11 +114,11 @@ public interface SysUserService {
|
||||
* @description 更新用户状态
|
||||
* @param userId 用户ID
|
||||
* @param status 状态
|
||||
* @return ResultDomain<Boolean> 更新结果
|
||||
* @return ResultDomain<BOOLEAN> 更新结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> updateUserStatus(String userId, String status);
|
||||
ResultDomain<BOOLEAN> updateUserStatus(String userId, String status);
|
||||
|
||||
// ================= 用户详细信息管理 =================
|
||||
/**
|
||||
@@ -152,21 +152,21 @@ public interface SysUserService {
|
||||
/**
|
||||
* @description 删除用户角色关联
|
||||
* @param userRoleDTO 用户角色DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> removeUserRole(TbSysUserRoleDTO userRoleDTO);
|
||||
ResultDomain<BOOLEAN> removeUserRole(TbSysUserRoleDTO userRoleDTO);
|
||||
|
||||
/**
|
||||
* @description 批量设置用户角色
|
||||
* @param userId 用户ID
|
||||
* @param[] roleIds 角色ID数组
|
||||
* @return ResultDomain<Boolean> 设置结果
|
||||
* @return ResultDomain<BOOLEAN> 设置结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> setUserRoles(String userId, String[] roleIds);
|
||||
ResultDomain<BOOLEAN> setUserRoles(String userId, String[] roleIds);
|
||||
|
||||
// ================= 用户完整信息查询 =================
|
||||
/**
|
||||
|
||||
@@ -36,11 +36,11 @@ public interface ViewService {
|
||||
/**
|
||||
* @description 根据ID删除视图
|
||||
* @param viewDTO 视图DTO
|
||||
* @return ResultDomain<Boolean> 删除结果
|
||||
* @return ResultDomain<BOOLEAN> 删除结果
|
||||
* @author yslg
|
||||
* @since 2025-11-05
|
||||
*/
|
||||
ResultDomain<Boolean> deleteView(TbSysViewDTO viewDTO);
|
||||
ResultDomain<BOOLEAN> deleteView(TbSysViewDTO viewDTO);
|
||||
|
||||
/**
|
||||
* @description 根据ID查询视图
|
||||
|
||||
@@ -36,13 +36,13 @@ public class AclVO extends BaseVO {
|
||||
private String principalDeptId;
|
||||
|
||||
@Schema(description = "权限位:1读 2写 4执行")
|
||||
private Integer permission;
|
||||
private INTEGER permission;
|
||||
|
||||
@Schema(description = "允许或显式拒绝", defaultValue = "true")
|
||||
private Boolean allow = true;
|
||||
private BOOLEAN allow = true;
|
||||
|
||||
@Schema(description = "是否包含子级(对dept/role生效)", defaultValue = "false")
|
||||
private Boolean includeDescendants = false;
|
||||
private BOOLEAN includeDescendants = false;
|
||||
|
||||
// TbSysAclPolicyDTO对应字段
|
||||
@Schema(description = "策略ID")
|
||||
@@ -61,11 +61,11 @@ public class AclVO extends BaseVO {
|
||||
private String viewHierarchyRule;
|
||||
|
||||
@Schema(description = "默认权限(无显式ACL时应用)", defaultValue = "0")
|
||||
private Integer defaultPermission = 0;
|
||||
private INTEGER defaultPermission = 0;
|
||||
|
||||
@Schema(description = "默认是否允许", defaultValue = "true")
|
||||
private boolean defaultAllow = true;
|
||||
private BOOLEAN defaultAllow = true;
|
||||
|
||||
@Schema(description = "是否默认应用到子级", defaultValue = "true")
|
||||
private boolean applyToChildren = true;
|
||||
private BOOLEAN applyToChildren = true;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class PermissionVO extends BaseVO {
|
||||
private String roleOwnerDeptId;
|
||||
|
||||
@Schema(description = "角色状态")
|
||||
private boolean roleStatus;
|
||||
private BOOLEAN roleStatus;
|
||||
|
||||
// TbSysModuleDTO对应字段
|
||||
@Schema(description = "模块ID")
|
||||
@@ -99,13 +99,13 @@ public class PermissionVO extends BaseVO {
|
||||
private String viewIcon;
|
||||
|
||||
@Schema(description = "类型")
|
||||
private Integer viewType;
|
||||
private INTEGER viewType;
|
||||
|
||||
@Schema(description = "布局")
|
||||
private String viewLayout;
|
||||
|
||||
@Schema(description = "排序")
|
||||
private Integer viewOrderNum;
|
||||
private INTEGER viewOrderNum;
|
||||
|
||||
@Schema(description = "视图描述")
|
||||
private String viewDescription;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class SysConfigVO extends BaseVO {
|
||||
@Schema(description = "配置值")
|
||||
private String value;
|
||||
|
||||
@Schema(description = "数据类型(String, Integer, Boolean, Float, Double)")
|
||||
@Schema(description = "数据类型(String, INTEGER, BOOLEAN, Float, Double)")
|
||||
private String configType;
|
||||
|
||||
@Schema(description = "配置渲染类型(select, input, textarea, checkbox, radio, switch)")
|
||||
@@ -60,10 +60,10 @@ public class SysConfigVO extends BaseVO {
|
||||
private String moduleDescription;
|
||||
|
||||
@Schema(description = "配置顺序")
|
||||
private Integer orderNum;
|
||||
private INTEGER orderNum;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
private INTEGER status;
|
||||
|
||||
public static TbSysConfigDTO toDTO(SysConfigVO vo) {
|
||||
if (vo == null) {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SysUserVO extends BaseVO {
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private Integer gender;
|
||||
private INTEGER gender;
|
||||
|
||||
@Schema(description = "姓")
|
||||
private String familyName;
|
||||
@@ -63,7 +63,7 @@ public class SysUserVO extends BaseVO {
|
||||
private String fullName;
|
||||
|
||||
@Schema(description = "等级")
|
||||
private Integer level;
|
||||
private INTEGER level;
|
||||
|
||||
@Schema(description = "身份证号")
|
||||
private String idCard;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class UserDeptRoleVO extends BaseVO {
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private Integer gender;
|
||||
private INTEGER gender;
|
||||
|
||||
@Schema(description = "姓")
|
||||
private String familyName;
|
||||
@@ -62,7 +62,7 @@ public class UserDeptRoleVO extends BaseVO {
|
||||
private String fullName;
|
||||
|
||||
@Schema(description = "等级")
|
||||
private Integer level;
|
||||
private INTEGER level;
|
||||
|
||||
@Schema(description = "身份证号")
|
||||
private String idCard;
|
||||
@@ -100,7 +100,7 @@ public class UserDeptRoleVO extends BaseVO {
|
||||
private String ownerDeptId;
|
||||
|
||||
@Schema(description = "角色状态")
|
||||
private boolean roleStatus;
|
||||
private BOOLEAN roleStatus;
|
||||
|
||||
|
||||
public static TbSysDeptDTO toDeptDTO(UserDeptRoleVO vo) {
|
||||
|
||||
Reference in New Issue
Block a user