修复缺失的service文件

This commit is contained in:
Je
2025-02-11 19:03:24 +08:00
parent a39ae9829c
commit 53f6b750da
16 changed files with 106 additions and 137 deletions

View File

@ -14,36 +14,37 @@ import java.util.List;
* @Author: tzx
* @Date: 2023/10/11 16:20
*/
@FeignClient(value = GlobalConstant.CLIENT_ORGANIZATION_NAME,fallback = DepartmentClientFallBack.class)
@FeignClient(value = GlobalConstant.CLIENT_ORGANIZATION_NAME, fallback = DepartmentClientFallBack.class)
public interface IDepartmentClient {
/**
* 根据id获取部门
*
* @param depId
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE+ GlobalConstant.MODULE_ORGANIZATION_NAME + "/getDepartmentByIdFeign")
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_ORGANIZATION_NAME + "/getDepartmentByIdFeign")
Department getDepartmentByIdFeign(@RequestParam("depId") Long depId);
/**
* 根据id获取部门
*
* @param depIds
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE+ GlobalConstant.MODULE_ORGANIZATION_NAME + "/getDepartmentListByIdsFeign")
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_ORGANIZATION_NAME + "/getDepartmentListByIdsFeign")
List<Department> getDepartmentListByIdsFeign(@RequestParam("depIds") List<Long> depIds);
/**
* 新增部门
*
* @param department
* @return
*/
@PostMapping(GlobalConstant.CLIENT_API_PRE+ GlobalConstant.MODULE_ORGANIZATION_NAME + "/addDepartmentFeign")
@PostMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_ORGANIZATION_NAME + "/addDepartmentFeign")
boolean addDepartmentFeign(Department department);
/**
@ -51,4 +52,10 @@ public interface IDepartmentClient {
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_ORGANIZATION_NAME + "/departmentCacheFeign")
void departmentCacheFeign();
/**
* 获取root部门
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE + GlobalConstant.MODULE_ORGANIZATION_NAME + "/queryPathFromRootFeign")
List<Department> queryPathFromRoot(List<Department> list);
}

View File

@ -45,7 +45,7 @@ public interface IUserRoleRelationClient {
* @param userRoleRelation
* @return
*/
@GetMapping(GlobalConstant.CLIENT_API_PRE+ GlobalConstant.MODULE_ORGANIZATION_NAME + "/addUserRoleRelationFeign")
@GetMapping(GlobalConstant.CLIENT_API_PRE+ GlobalConstant.MODULE_ORGANIZATION_NAME + "/list")
List<UserRoleRelation> list(UserRoleRelation userRoleRelation);
}

View File

@ -31,4 +31,10 @@ public class DepartmentClientFallBack implements IDepartmentClient {
public void departmentCacheFeign() {
}
@Override
public List<Department> queryPathFromRoot(List<Department> list) {
return null;
}
}