pc端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
750 B

import http from 'utils/axios';
const apiUrl = import.meta.env.VITE_API_URL;
const users = `${apiUrl}/gateway/tall3/v3.0/users`;
const corrosion = `${apiUrl}/gateway/corrosion`;
// 根据userId 获取token
export const getToken = userId => http.get(`${users}/userId`, { params: { userId } });
// 获取设备列表
export const getDevices = () => http.get(`${corrosion}/devices`);
// 获取设备列表 完整信息
export const getDevicesAll = () => http.get(`${corrosion}/devices/all`);
// 获取月累计数据分析
export const getMonthesDate = params => http.get(`${corrosion}/statistics/monthes`, { params });
// 获取实时数据统计
export const getRealtimeData = params => http.get(`${corrosion}/statistics/realtime`, { params });