log 관련
This commit is contained in:
@@ -10,8 +10,18 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const paymentCard = (params: PaymentCardParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 42,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<PaymentCardResponse>(API_URL_PAYMENT.paymentCard(), params),
|
||||
);
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const paymentInstallmentDetail = (params: PaymentInstallmentDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 42,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<PaymentInstallmentDetailResponse>(API_URL_PAYMENT.paymentInstallmentDetail(), params),
|
||||
axios.post<PaymentInstallmentDetailResponse>(API_URL_PAYMENT.paymentInstallmentDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const paymentInstallment = (params: PaymentInstallmentParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 42,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<PaymentInstallmentResponse>(API_URL_PAYMENT.paymentInstallment(), params),
|
||||
axios.post<PaymentInstallmentResponse>(API_URL_PAYMENT.paymentInstallment(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const paymentNonCard = (params: PaymentNonCardParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 42,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<PaymentNonCardResponse>(API_URL_PAYMENT.paymentNonCard(), params),
|
||||
axios.post<PaymentNonCardResponse>(API_URL_PAYMENT.paymentNonCard(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const paymentNotificationData = (params: PaymentNotificationDataParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 43,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<PaymentNotificationDataResponse>(API_URL_PAYMENT.paymentNotificationData(), params),
|
||||
axios.post<PaymentNotificationDataResponse>(API_URL_PAYMENT.paymentNotificationData(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user