设备关联微信

This commit is contained in:
柳清爽
2025-04-01 10:00:20 +08:00
parent c8d84489f6
commit 6638fcb8a1
6 changed files with 810 additions and 63 deletions

View File

@@ -33,6 +33,11 @@ export const fetchDeviceDetail = async (id: string | number): Promise<ApiRespons
return api.get<ApiResponse<any>>(`/v1/devices/${id}`);
};
// 获取设备关联的微信账号
export const fetchDeviceRelatedAccounts = async (id: string | number): Promise<ApiResponse<any>> => {
return api.get<ApiResponse<any>>(`/v1/devices/${id}/related-accounts`);
};
// 更新设备任务配置
export const updateDeviceTaskConfig = async (
id: string | number,