first commit

This commit is contained in:
2024-04-08 21:34:02 +08:00
commit a41a7f32ab
223 changed files with 44629 additions and 0 deletions

7
src/apis/area/index.ts Normal file
View 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
View File

@@ -0,0 +1,5 @@
export interface AreaItem {
label: string
code: string
children?: AreaItem[]
}