feat(bi): 添加天气数据获取API
- 集成百度地图天气API获取功能 - 创建getWeather请求方法 - 配置天气数据获取的API端点 - 设置区域ID为1300的数据请求 - 添加API密钥配置 - 实现数据类型为all的完整天气信息获取master
parent
b0f7c40d32
commit
6b787d478d
|
|
@ -0,0 +1,6 @@
|
|||
import { declareRequest } from '@cqsjjb/jjb-dva-runtime';
|
||||
|
||||
export const getWeather = declareRequest(
|
||||
'biLoading',
|
||||
'Get > https://api.map.baidu.com/weather/v1/?district_id=130300&data_type=all&ak=dIqOi34IlTg5FkNck1vqoBpLhPAj36S1',
|
||||
);
|
||||
Loading…
Reference in New Issue