抄盘手端 - 设置设备任务参数调整

This commit is contained in:
柳清爽
2025-04-16 17:49:17 +08:00
parent ad0d487b6b
commit 9e44fef525
5 changed files with 25 additions and 234 deletions

View File

@@ -127,5 +127,23 @@ export const deviceApi = {
})
return response.json()
},
// 更新设备任务配置
async updateDeviceTaskConfig(params: {
deviceId: string;
autoAddFriend?: number;
autoReply?: number;
momentsSync?: number;
aiChat?: number;
}): Promise<ApiResponse<Device>> {
const response = await fetch(`${API_BASE}/task-config`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(params),
});
return response.json();
},
}