1.用户模块添加对外接口
This commit is contained in:
@@ -81,7 +81,7 @@ public interface DeptFeignClient {
|
||||
HttpResult<Dept> getDeptByCode(@RequestParam("deptCode") String deptCode);
|
||||
|
||||
/**
|
||||
* 根据部门id获取所有子部门ids
|
||||
* 根据部门id获取所有子部门ids包含自身
|
||||
*/
|
||||
@GetMapping("/getDepSonIdtByDeptId")
|
||||
HttpResult<List<String>> getDepSonIdtByDeptId(@RequestParam("deptId") String deptId);
|
||||
|
||||
@@ -69,12 +69,21 @@ public interface UserFeignClient {
|
||||
HttpResult<List<User>> appuserByIdList(@RequestBody List<String> ids);
|
||||
|
||||
/**
|
||||
* 根据部门ids查询用户信息
|
||||
* 根据部门ids查询接收短信通知的用户信息
|
||||
* @param deptId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getUserByDeptIds")
|
||||
HttpResult<List<User>> getUserByDeptIds(@RequestBody List<String> deptId);
|
||||
|
||||
/**
|
||||
* 根据部门ids查询用户信息
|
||||
* @param deptId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getUserInfoByDeptIds")
|
||||
HttpResult<List<User>> getUserInfoByDeptIds(@RequestBody List<String> deptId);
|
||||
|
||||
/**
|
||||
* 根据角色Code集合查询用户信息
|
||||
* @param roleCode
|
||||
@@ -85,4 +94,5 @@ public interface UserFeignClient {
|
||||
|
||||
@GetMapping("/getUserById")
|
||||
HttpResult<UserVO> getUserById(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -76,6 +76,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
|
||||
@Override
|
||||
public HttpResult<List<User>> getUserByDeptIds(List<String> deptId) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据部门ids查询接收短信通知的用户信息",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<User>> getUserInfoByDeptIds(List<String> deptId) {
|
||||
log.error("{}异常,降级处理,异常为:{}","根据部门ids查询用户信息",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
@@ -91,6 +97,8 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
log.error("{}异常,降级处理,异常为:{}","根据用户id获取用户详情",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user