避难所

This commit is contained in:
wzy-warehouse
2026-04-18 20:10:54 +08:00
parent 0921f07593
commit b7d300e1e9
14 changed files with 270 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { ApiResponse } from "@/types/ApiResponse"
import type { XianEmergencyShelter } from "@/types/base/XianEmergencyShelter"
import httpInstance from "@/utils/request/http"
/**
* 获取避难所基础数据
* @returns 避难所数据数组
*/
export const getBasePoints = (): Promise<ApiResponse<XianEmergencyShelter[]>> => {
return httpInstance.get('/emergency-shelter/base-points')
}
/**
* 根据id获取避难所详情
* @param id - 避难所id
* @returns 避难所详情
*/
export const getPointDetailById = (id: number): Promise<ApiResponse<XianEmergencyShelter>> => {
return httpInstance.get(`/emergency-shelter/point-detail/${id}`)
}