部门接口,字典树接口调整

This commit is contained in:
cdf
2024-05-29 13:40:40 +08:00
parent 619821efc8
commit 8726fdee27
20 changed files with 530 additions and 466 deletions

View File

@@ -31,6 +31,10 @@ public interface DictTreeFeignClient {
@GetMapping("/queryAll")
HttpResult<List<SysDicTreePO>> queryAll() ;
@GetMapping("/queryAllByType")
HttpResult<List<SysDicTreePO>> queryAllByType(@RequestParam("type")Integer type) ;
@GetMapping("/queryTree")
HttpResult<List<SysDicTreePO>> queryTree() ;

View File

@@ -58,6 +58,11 @@ public class DictTreeFeignClientFallbackFactory implements FallbackFactory<DictT
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<SysDicTreePO>> queryAllByType(Integer type) {
log.error("{}异常,降级处理,异常为:{}","分类获取所有字典树数据",cause.toString());
throw new BusinessException(finalExceptionEnum); }
@Override
public HttpResult<List<SysDicTreePO>> queryTree() {
log.error("{}异常,降级处理,异常为:{}","获取树形数据",cause.toString());