import request from '@/utils/request' /** * 获取设备类型列表 * @returns {Promise} 返回设备类型列表数据 */ export function getDeviceTypes() { return request({ url: '/app/type/list', method: 'GET', loadingText: '加载设备类型中...', }) } /** * 根据设备类型获取租赁套餐列表 * @param {string} typeId - 设备类型ID * @returns {Promise} 返回租赁套餐列表数据 */ export function getPeriodPackages(typeId) { return request({ url: '/app/suit/list', method: 'GET', params: { typeId: typeId }, loadingText: '加载套餐中...', }) }