更新api.js
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user