service/common.ts
@@ -73,6 +73,10 @@ return get<SetupStatusResponse>('/setup') } export const regAndLogin: Fetcher<CommonResponse, { body: Record<string, any> }> = ({ body }) => { return post<CommonResponse>('/regAndLogin', { body }) } export const fetchUserProfile: Fetcher<UserProfileOriginResponse, { url: string; params: Record<string, any> }> = ({ url, params }) => { return get<UserProfileOriginResponse>(url, params, { needAllResponseContent: true }) }