feat(bi): 添加天气数据获取API

- 集成百度地图天气API获取功能
- 创建getWeather请求方法
- 配置天气数据获取的API端点
- 设置区域ID为1300的数据请求
- 添加API密钥配置
- 实现数据类型为all的完整天气信息获取
master
fangjiakai 2026-01-06 10:50:43 +08:00
parent b0f7c40d32
commit 6b787d478d
1 changed files with 6 additions and 0 deletions

6
src/api/bi/index.js Normal file
View File

@ -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',
);