- 부가서비스 헤더 로그 추가
This commit is contained in:
@@ -2,18 +2,28 @@ import axios from 'axios';
|
||||
import { API_URL_ADDITIONAL_SERVICE } from '@/shared/api/api-url-additional-service';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
import {
|
||||
ExtensionFundAccountBalanceParams,
|
||||
ExtensionFundAccountBalanceResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountBalance = (params: ExtensionFundAccountBalanceParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountBalanceResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountBalance(), params),
|
||||
axios.post<ExtensionFundAccountBalanceResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountBalance(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user