2026-04-11 18:58:43 +08:00
|
|
|
import type { ApiResponse } from "@/types/ApiResponse"
|
|
|
|
|
import type { XianRiskSpots } from "@/types/base/XianRiskSpots"
|
|
|
|
|
import httpInstance from "@/utils/request/http"
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-13 22:28:56 +08:00
|
|
|
* 获取风险点基础数据
|
|
|
|
|
* @returns 风险点数据数组
|
2026-04-11 18:58:43 +08:00
|
|
|
*/
|
|
|
|
|
export const getBasePoins = (): Promise<ApiResponse<XianRiskSpots[]>> => {
|
|
|
|
|
return httpInstance.get('/risk-spots/base-points')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据id获取风险点详情
|
2026-04-13 22:28:56 +08:00
|
|
|
* @param id - 风险点id
|
2026-04-11 18:58:43 +08:00
|
|
|
* @returns 风险点详情
|
|
|
|
|
*/
|
|
|
|
|
export const getPointDetailById = (id: number): Promise<ApiResponse<XianRiskSpots>> => {
|
|
|
|
|
return httpInstance.get(`/risk-spots/point-detail/${id}`)
|
|
|
|
|
}
|