fix(api): export updateCompanionProfile for expert workspace and hall
这个提交包含在:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户