添加降雨服务器配置

This commit is contained in:
wzy-warehouse
2026-05-05 17:09:32 +08:00
parent 4982152f0c
commit 96c2cf1e21
8 changed files with 120 additions and 15 deletions
+15
View File
@@ -55,6 +55,9 @@ import type { XianSchool } from '@/types/base/XianSchool';
import type { XianBridge } from '@/types/base/XianBridge.ts';
import type { XianReservoirList } from '@/types/base/XianReservoirList';
import type { XianSubwayStations } from '@/types/base/XianSubwayStations';
import type { RainfallGridRequest } from '@/types/rainstorm/RainfallGridRequest';
import type { RainfallGridResponse } from '@/types/rainstorm/RainfallGridResponse';
import { getRainfallGrid } from './meteorology';
/**
* API接口统一导出对象
@@ -277,4 +280,16 @@ export const $api = {
): Promise<ApiResponse<XianSubwayStations>> =>
getSubwayStationsPointDetailById(id),
},
// 气象信息
meteorology: {
/**
* 获取网格天气信息
* @param request - 请求参数
* @returns 网格天气信息
*/
getRainfallGrid: (
request: RainfallGridRequest
): Promise<ApiResponse<RainfallGridResponse>> => getRainfallGrid(request),
},
};
+14
View File
@@ -0,0 +1,14 @@
import type { ApiResponse } from '@/types/ApiResponse';
import type { RainfallGridRequest } from '@/types/rainstorm/RainfallGridRequest';
import type { RainfallGridResponse } from '@/types/rainstorm/RainfallGridResponse';
import httpInstance from '@/utils/request/http';
/**
* 获取降雨栅格数据
* @returns 降雨栅格数据
*/
export const getRainfallGrid = (
request: RainfallGridRequest
): Promise<ApiResponse<RainfallGridResponse>> => {
return httpInstance.post('/algorithm-api/rainfall/grid', request);
};