mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-05 08:57:10 +08:00
first commit
This commit is contained in:
7
src/apis/area/index.ts
Normal file
7
src/apis/area/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import http from '@/utils/http'
|
||||
import type * as Area from './type'
|
||||
|
||||
/** @desc 获取地区列表 */
|
||||
export const getAreaList = (params: { type: 'province' | 'city' | 'area'; code?: string }) => {
|
||||
return http.get<Area.AreaItem>('/area/list', params)
|
||||
}
|
||||
5
src/apis/area/type.ts
Normal file
5
src/apis/area/type.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface AreaItem {
|
||||
label: string
|
||||
code: string
|
||||
children?: AreaItem[]
|
||||
}
|
||||
Reference in New Issue
Block a user