Feat/utm update (#2269)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
Garfield Dai 2024-01-29 17:31:45 +08:00 • committed by GitHub
commit d3d617239f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 29 additions and 78 deletions

View file

@ -20,7 +20,6 @@ import type {
ProviderAzureToken,
SetupStatusResponse,
UserProfileOriginResponse,
Utm,
} from '@/models/common'
import type {
UpdateOpenAIKeyResponse,
@ -263,7 +262,3 @@ type RetrievalMethodsRes = {
export const fetchSupportRetrievalMethods: Fetcher<RetrievalMethodsRes, string> = (url) => {
return get<RetrievalMethodsRes>(url)
}
export const operationUtm: Fetcher<CommonResponse, { url: string; body: Utm }> = ({ url, body }) => {
return post(url, { body }) as Promise<CommonResponse>
}