1. 业务附件管理 API 新增带 url 的分页查询方法

2. 区域查询结果新增查询国家信息的接口

(cherry picked from commit e6b063491f)
This commit is contained in:
chenbowen
2025-09-17 10:30:07 +08:00
committed by chenbowen
parent 6cbf57ce96
commit a5bb897551
3 changed files with 21 additions and 0 deletions

View File

@@ -47,4 +47,12 @@ public class AreaController {
return success(AreaUtils.format(area.getId()));
}
@GetMapping("/global")
@Operation(summary = "获得国家列表")
public CommonResult<List<AreaNodeRespVO>> getAreaTreeGlobal() {
Area area = AreaUtils.getArea(Area.ID_GLOBAL);
Assert.notNull(area, "获取不到国家信息");
return success(BeanUtils.toBean(area.getChildren(), AreaNodeRespVO.class));
}
}