1.字典解析调整
2.用户对外接口添加
This commit is contained in:
@@ -65,5 +65,6 @@ public interface UserFeignClient {
|
||||
@PostMapping("/userByIdList")
|
||||
HttpResult<List<User>> getUserByIdList(@RequestBody List<String> ids);
|
||||
|
||||
|
||||
@PostMapping("/getAdminInfo")
|
||||
HttpResult<List<User>> getAdminInfo();
|
||||
}
|
||||
|
||||
@@ -67,6 +67,12 @@ public class UserFeignClientFallbackFactory implements FallbackFactory<UserFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<User>> getAdminInfo() {
|
||||
log.error("{}异常,降级处理,异常为:{}","获取业务管理员信息",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user