log 관련
This commit is contained in:
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const billingCharge = (params: BillingChargeParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 34,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<BillingChargeResponse>(API_URL_TRANSACTION.billingCharge(), params),
|
||||
axios.post<BillingChargeResponse>(API_URL_TRANSACTION.billingCharge(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const billingDetail = (params: BillingDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 34,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<BillingDetailResponse>(API_URL_TRANSACTION.billingDetail(), params),
|
||||
axios.post<BillingDetailResponse>(API_URL_TRANSACTION.billingDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const billingList = (params: BillingListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 34,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<BillingListResponse>(API_URL_TRANSACTION.billingList(), params),
|
||||
axios.post<BillingListResponse>(API_URL_TRANSACTION.billingList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const cashReceiptReceiptDownload = (params: CashReceiptReceiptDownloadParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 32,
|
||||
apiType: 'DOWNLOAD'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<CashReceiptReceiptDownloadResponse>(API_URL_TRANSACTION.cashReceiptReceiptDownload(), params),
|
||||
axios.post<CashReceiptReceiptDownloadResponse>(API_URL_TRANSACTION.cashReceiptReceiptDownload(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const cashReceiptSummary = (params: CashReceiptSummaryParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 32,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<CashReceiptSummaryResponse>(API_URL_TRANSACTION.cashReceiptSummary(), params),
|
||||
axios.post<CashReceiptSummaryResponse>(API_URL_TRANSACTION.cashReceiptSummary(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const downloadConfirmation = (params: DownloadConfirmationParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 31,
|
||||
apiType: 'DOWNLOAD'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<DownloadConfirmationResponse>(API_URL_TRANSACTION.downloadConfirmation(), params),
|
||||
axios.post<DownloadConfirmationResponse>(API_URL_TRANSACTION.downloadConfirmation(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const downloadExcel = (params: DownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 31,
|
||||
apiType: 'DOWNLOAD'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<DownloadExcelResponse>(API_URL_TRANSACTION.downloadExcel(), params),
|
||||
axios.post<DownloadExcelResponse>(API_URL_TRANSACTION.downloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const escrowDetail = (params: EscrowDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 33,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<DetailResponse>(API_URL_TRANSACTION.escrowDetail(), params),
|
||||
axios.post<DetailResponse>(API_URL_TRANSACTION.escrowDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const escrowList = (params: EscrowListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 33,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<EscrowListResponse>(API_URL_TRANSACTION.escrowList(), params),
|
||||
axios.post<EscrowListResponse>(API_URL_TRANSACTION.escrowList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const escrowMailResend = (params: EscrowMailResendParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 33,
|
||||
apiType: 'MAIL'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<EscrowMailResendResponse>(API_URL_TRANSACTION.escrowMailResend(), params),
|
||||
axios.post<EscrowMailResendResponse>(API_URL_TRANSACTION.escrowMailResend(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user