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
parent 6c3b34a61d
commit d3d617239f
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>
}