serv\web- 多租户修改
This commit is contained in:
@@ -6,6 +6,7 @@ import org.xyzh.common.core.domain.ResultDomain;
|
||||
import org.xyzh.common.dto.dept.TbSysDept;
|
||||
import org.xyzh.common.dto.dept.TbSysDeptRole;
|
||||
import org.xyzh.common.dto.role.TbSysRole;
|
||||
import org.xyzh.common.vo.UserDeptRoleVO;
|
||||
|
||||
/**
|
||||
* @description DepartmentService.java文件描述 部门服务接口
|
||||
@@ -98,12 +99,12 @@ public interface DepartmentService {
|
||||
ResultDomain<TbSysRole> getDeptByRole(String deptId);
|
||||
|
||||
/**
|
||||
* @description 查询部门绑定角色
|
||||
* @return ResultDomain<TbSysDeptRole> 角色信息
|
||||
* @description 查询部门绑定角色列表(包含名称)
|
||||
* @return ResultDomain<UserDeptRoleVO> 部门角色信息
|
||||
* @author yslg
|
||||
* @since 2025-10-06
|
||||
*/
|
||||
ResultDomain<TbSysDeptRole> getDeptByRoleList();
|
||||
ResultDomain<UserDeptRoleVO> getDeptByRoleList();
|
||||
|
||||
/**
|
||||
* @description 绑定部门角色
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.xyzh.api.system.permission;
|
||||
|
||||
import org.xyzh.common.core.domain.ResultDomain;
|
||||
import org.xyzh.common.dto.permission.TbResourcePermission;
|
||||
import org.xyzh.common.vo.UserDeptRoleVO;
|
||||
|
||||
/**
|
||||
* @description 资源权限控制服务接口
|
||||
* @filename ResourcePermissionService.java
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-29
|
||||
*/
|
||||
public interface ResourcePermissionService {
|
||||
|
||||
/**
|
||||
* @description 创建资源权限 根据用户
|
||||
* @param resource_type 资源类型
|
||||
* @param resource_id 资源ID
|
||||
* @param creatorID 创建者ID
|
||||
* @return ResultDomain<TbResourcePermission> 资源权限
|
||||
* @author yslg
|
||||
* @since 2025-10-29
|
||||
*/
|
||||
ResultDomain<TbResourcePermission> createResourcePermission(Integer resource_type, String resource_id, UserDeptRoleVO userDeptRole);
|
||||
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import org.xyzh.common.core.domain.ResultDomain;
|
||||
import org.xyzh.common.dto.permission.TbSysPermission;
|
||||
import org.xyzh.common.dto.role.TbSysRole;
|
||||
import org.xyzh.common.dto.role.TbSysRolePermission;
|
||||
import org.xyzh.common.vo.DeptRoleVO;
|
||||
import org.xyzh.common.vo.UserDeptRoleVO;
|
||||
|
||||
|
||||
/**
|
||||
@@ -72,11 +72,11 @@ public interface RoleService {
|
||||
/**
|
||||
* @description 根据用户ID查询部门角色列表
|
||||
* @param userId 用户ID
|
||||
* @return ResultDomain<DeptRoleVO> 角色列表
|
||||
* @return ResultDomain<UserDeptRoleVO> 角色列表
|
||||
* @author yslg
|
||||
* @since 2025-09-28
|
||||
*/
|
||||
ResultDomain<DeptRoleVO> getDeptRolesByUserId(String userId);
|
||||
ResultDomain<UserDeptRoleVO> getDeptRolesByUserId(String userId);
|
||||
|
||||
/**
|
||||
* @description 检查角色名称是否存在
|
||||
|
||||
@@ -169,7 +169,7 @@ public interface UserService {
|
||||
* @author yslg
|
||||
* @since 2025-10-09
|
||||
*/
|
||||
ResultDomain<TbSysUserDeptRole> getBindUserDeptRoleList(TbSysUserDeptRole filter);
|
||||
ResultDomain<UserDeptRoleVO> getBindUserDeptRoleList(TbSysUserDeptRole filter);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user