This commit is contained in:
@@ -1,28 +1,37 @@
|
||||
import type { CityAreaVO, CityAreaForm, CityAreaQuery } from './model';
|
||||
import type { CityAreaForm, CityAreaQuery, CityAreaVO } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询行政区划
|
||||
列表
|
||||
* @param params
|
||||
* @returns 行政区划
|
||||
列表
|
||||
*/
|
||||
* 查询行政区划
|
||||
列表
|
||||
* @param params
|
||||
* @returns 行政区划
|
||||
列表
|
||||
*/
|
||||
export function cityAreaList(params?: CityAreaQuery) {
|
||||
return requestClient.get<PageResult<CityAreaVO>>('/property/cityArea/list', { params });
|
||||
return requestClient.get<PageResult<CityAreaVO>>('/property/cityArea/list', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询城市结构数
|
||||
* @param params
|
||||
*/
|
||||
export function getCityAreaTreeList() {
|
||||
return requestClient.get<CityAreaVO[]>('/property/cityArea/treeList');
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出行政区划
|
||||
列表
|
||||
列表
|
||||
* @param params
|
||||
* @returns 行政区划
|
||||
列表
|
||||
列表
|
||||
*/
|
||||
export function cityAreaExport(params?: CityAreaQuery) {
|
||||
return commonExport('/property/cityArea/export', params ?? {});
|
||||
@@ -30,10 +39,10 @@ export function cityAreaExport(params?: CityAreaQuery) {
|
||||
|
||||
/**
|
||||
* 查询行政区划
|
||||
详情
|
||||
详情
|
||||
* @param areaCode id
|
||||
* @returns 行政区划
|
||||
详情
|
||||
详情
|
||||
*/
|
||||
export function cityAreaInfo(areaCode: ID) {
|
||||
return requestClient.get<CityAreaVO>(`/property/cityArea/${areaCode}`);
|
||||
|
Reference in New Issue
Block a user