添加地铁站

This commit is contained in:
zhuangzhuang2000
2026-04-27 15:04:59 +08:00
parent a9f622f211
commit f3c33f70f0
13 changed files with 244 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { ApiResponse } from "@/types/ApiResponse"
import type { XianSubwayStations } from "@/types/base/XianSubwayStations"
import httpInstance from "@/utils/request/http"
/**
* 获取地铁站点基础数据
* @returns 地铁站点数据数组
*/
export const getBasePoints = (): Promise<ApiResponse<XianSubwayStations[]>> => {
return httpInstance.get('/subway/base-points')
}
/**
* 根据id获取地铁站点详情
* @param id - 地铁站点id
* @returns 地铁站点详情
*/
export const getPointDetailById = (id: number): Promise<ApiResponse<XianSubwayStations>> => {
return httpInstance.get(`/subway/point-detail/${id}`)
}