fix:bug解决

This commit is contained in:
李伊帆
2026-10-28 10:36:39 +08:00
parent c369127166
commit 91bca314ba
57 changed files with 2839 additions and 384 deletions

View File

@@ -1,7 +1,7 @@
import { request } from '@/api/request'
import type { AppDeviceVo, DeviceQueryBody } from './device.types'
/** POST /app/device/list — 查询当前用户的设备列表 */
/** POST /app/device/list — 按家庭/房间查询设备(首页设备 Tab 等) */
export function fetchDeviceList(query: DeviceQueryBody = {}) {
return request<AppDeviceVo[]>({
url: '/app/device/list',
@@ -9,3 +9,12 @@ export function fetchDeviceList(query: DeviceQueryBody = {}) {
data: query,
})
}
/** POST /app/device/listAll — 当前用户绑定的全部设备(选择设备、我的设备等跨家庭场景) */
export function fetchAllDeviceList() {
return request<AppDeviceVo[]>({
url: '/app/device/listAll',
method: 'GET',
data: {},
})
}