部门接口,字典树接口调整
This commit is contained in:
@@ -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() ;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user