更新api.js

This commit is contained in:
2025-11-10 23:22:13 +08:00
parent ba4dfc62a8
commit 7fe6cee942
11 changed files with 312 additions and 223 deletions

View File

@@ -1,19 +1,5 @@
import http from '../utils/http';
/**
* @typedef {object} Response
* @property {number} code - 业务状态码
* @property {object} [data] - 业务数据
* @property {string} [message] - 提示信息
*/
/**
* @typedef {('执行器'|'传感器')} DeviceCategory
*/
/**
* @typedef {('信号强度'|'电池电量'|'温度'|'湿度'|'重量')} SensorType
*/
import { Response, DeviceCategory, SensorType } from '../enums';
/**
* @typedef {object} ValueDescriptor