This commit is contained in:
Ray.Hao
2026-01-17 09:08:06 +08:00
3 changed files with 42 additions and 13 deletions

View File

@@ -25,6 +25,15 @@ const AuthAPI = {
});
},
/** 切换租户(平台用户) - 返回新的 token */
switchTenant(tenantId: number) {
return request<any, LoginResponse>({
url: `${AUTH_BASE_URL}/switch-tenant`,
method: "post",
params: { tenantId },
});
},
/** 刷新 token 接口*/
refreshToken(refreshToken: string) {
return request<any, LoginResponse>({