fix(api): export updateCompanionProfile for expert workspace and hall

这个提交包含在:
xcbyy
2026-10-14 11:07:56 +08:00
父节点 51c19d6063
当前提交 8fc4d601c3

查看文件

@@ -1089,3 +1089,17 @@ export async function getMyReports(userId) {
}
}
/**
* 更新大神资料与接单状态 (如 status: '接单中' | '休息中')
*/
export async function updateCompanionProfile(expertId = 101, profileData = {}) {
try {
const res = await http.put(`/companions/${expertId}/profile`, profileData);
return res;
} catch (err) {
console.warn('[API] 更新大神资料/接单状态异常:', err.message);
throw err;
}
}