HomeLease/api/device/device.js
2025-08-19 08:55:34 +08:00

19 lines
432 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 获取设备列表
* @param {Object} params - 查询参数
* @param {string} params.appId - 应用ID默认为1
* @param {string} params.userId - 用户ID
* @returns {Promise} 返回设备列表数据
*/
export function getDeviceList(params = {}) {
return request({
url: '/app/device/list',
method: 'GET',
params: {
appId: '1',
...params,
},
})
}