feat: 超管账户切换

This commit is contained in:
ah--desktop
2025-10-27 23:30:28 +08:00
parent 8914b175d7
commit 25977c568f
27 changed files with 944 additions and 76 deletions
@@ -100,3 +100,10 @@ export async function logoutApi() {
export async function getAccessCodesApi() {
return requestClient.get<string[]>('/auth/codes');
}
/**
* 切换账户(超级管理员功能)
*/
export async function switchAccountApi(userId: number) {
return requestClient.post<AuthApi.LoginResult>(`/auth/switch/${userId}`);
}