chore: obsolete info api use new api (#954)

This commit is contained in:
Joel
2023-08-22 16:59:57 +08:00
committed by GitHub
parent e67a1413b6
commit 4db35fa375
2 changed files with 24 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ import type {
ICurrentWorkspace,
IWorkspace, LangGeniusVersionResponse, Member,
OauthResponse, PluginProvider, Provider, ProviderAnthropicToken, ProviderAzureToken,
SetupStatusResponse, TenantInfoResponse, UserProfileOriginResponse,
SetupStatusResponse, UserProfileOriginResponse,
} from '@/models/common'
import type {
UpdateOpenAIKeyResponse,
@@ -34,10 +34,6 @@ export const updateUserProfile: Fetcher<CommonResponse, { url: string; body: Rec
return post(url, { body }) as Promise<CommonResponse>
}
export const fetchTenantInfo: Fetcher<TenantInfoResponse, { url: string }> = ({ url }) => {
return get(url) as Promise<TenantInfoResponse>
}
export const logout: Fetcher<CommonResponse, { url: string; params: Record<string, any> }> = ({ url, params }) => {
return get(url, params) as Promise<CommonResponse>
}