fix:bug解决
This commit is contained in:
@@ -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: {},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user