INNER CODE UNIT · TypeScript
updateAccount
Simprint/simprint · plugins/pages/account-center/src/api/index.ts:158
export async function updateAccount(data: {
uuid: string;
platform_url?: string;
platform_name?: string;
account?: string;
password?: string;
remark?: string;
status?: string;
}): Promise<void> {
const result = await post(API_ENDPOINTS.UPDATE_ACCOUNT, data);
if (!isSuccess(result)) {
throw new Error(result.message || '更新账号失败');
}
}
/**
* 删除账号
*/