Commit 98e17d751633a67b2a4bd556e75128a745c863f3

Authored by fengtao
1 parent 4f47ed44

fix: 修改设备列表操作里的收藏接口

@@ -45,7 +45,7 @@ enum DeviceManagerApi { @@ -45,7 +45,7 @@ enum DeviceManagerApi {
45 DEVICE_PUBLIC = '/customer/public/device', 45 DEVICE_PUBLIC = '/customer/public/device',
46 46
47 DEVICE_PRIVATE = '/customer/device', 47 DEVICE_PRIVATE = '/customer/device',
48 - DEVICE_COLLECT = '/device/collect ', //收藏 48 + DEVICE_COLLECT = '/collect/DEVICE_COLLECT', //收藏
49 49
50 /** 50 /**
51 * @description 通过设备列表获取设备信息 51 * @description 通过设备列表获取设备信息
@@ -62,9 +62,9 @@ export const devicePage = (params: DeviceQueryParam) => { @@ -62,9 +62,9 @@ export const devicePage = (params: DeviceQueryParam) => {
62 }); 62 });
63 }; 63 };
64 64
65 -export const deviceCollect = (params: Array<any>) => { 65 +export const deviceCollect = (params: string[]) => {
66 return defHttp.post({ 66 return defHttp.post({
67 - url: `${DeviceManagerApi.DEVICE_COLLECT}`, 67 + url: `${DeviceManagerApi.DEVICE_COLLECT}?collectEnum=DEVICE_COLLECT`,
68 params, 68 params,
69 }); 69 });
70 }; 70 };