2025-11-05 15:59:48 +08:00
|
|
|
// 引入 request 文件
|
2025-11-26 08:40:27 +08:00
|
|
|
import request from '@/request/index.js'
|
2025-11-05 15:59:48 +08:00
|
|
|
|
|
|
|
|
// 以下 api 为博主项目示例,实际与项目相匹配
|
|
|
|
|
|
|
|
|
|
// 用你给的四个固定值
|
|
|
|
|
export const movedirection = (direction,startOrNot) => {
|
2025-11-26 08:40:27 +08:00
|
|
|
const url = `https://www.focusnu.com/devopsapi/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${uni.getStorageSync('saveinit') ? uni.getStorageSync('saveinit'): 5}&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
|
2025-11-05 15:59:48 +08:00
|
|
|
return request({ url, method: 'get' });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取护理单元
|
|
|
|
|
export const queryPadPageList = () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|