index.ts
379 Bytes
import { DeviceInfoItemType } from './model';
import { TBPaginationResult } from '/#/axios';
import { defHttp } from '/@/utils/http/axios';
enum Api {
GET_DEVICE_INFOS = '/tenant/deviceInfos',
}
export const getDeviceInfos = () => {
return defHttp.get<TBPaginationResult<DeviceInfoItemType>>(
{
url: Api.GET_DEVICE_INFOS,
},
{ joinPrefix: false }
);
};