log 관련

This commit is contained in:
focp212@naver.com
2025-10-29 17:11:48 +09:00
parent 4faa8affb0
commit f4963143aa
59 changed files with 637 additions and 56 deletions

View File

@@ -10,12 +10,22 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesCacheRefreshByCodeCl = ({
codeCl
}: CodesCacheRefreshByCodeClParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<CodesCacheRefreshByCodeClResponse>(API_URL.codesCacheRefreshByCodelCl(codeCl)),
axios.post<CodesCacheRefreshByCodeClResponse>(API_URL.codesCacheRefreshByCodelCl(codeCl), options),
);
};

View File

@@ -7,6 +7,7 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesCacheRefresh = () => {
return resultify(

View File

@@ -11,6 +11,7 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesSelect = ({
codeCl,
@@ -26,6 +27,15 @@ export const codesSelect = ({
);
}
else{
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<CodesSelectGetResponse & CodesSelectPostResponse>(API_URL.codesSelect(), {
codeCl,
@@ -33,7 +43,7 @@ export const codesSelect = ({
code1,
code2,
useCl
}),
}, options),
);
}
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeBannerList = (params: HomeBannerListParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeBannerListResponse>(API_URL_HOME.homeBannerList(), params),
axios.post<HomeBannerListResponse>(API_URL_HOME.homeBannerList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeGroups = (params: HomeGroupsParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeGroupsResponse>(API_URL_HOME.homeGroups(), params),
axios.post<HomeGroupsResponse>(API_URL_HOME.homeGroups(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeMonth = (params: HomeMonthParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeMonthResponse>(API_URL_HOME.homeMonth(), params),
axios.post<HomeMonthResponse>(API_URL_HOME.homeMonth(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeNoticeList = (params: HomeNoticeListParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeNoticeListResponse>(API_URL_HOME.homeBannerList(), params),
axios.post<HomeNoticeListResponse>(API_URL_HOME.homeBannerList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeOverview = (params: HomeOverviewParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeOverviewResponse>(API_URL_HOME.homeOverview(), params),
axios.post<HomeOverviewResponse>(API_URL_HOME.homeOverview(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const homeToday = (params: HomeTodayParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<HomeTodayResponse>(API_URL_HOME.homeToday(), params),
axios.post<HomeTodayResponse>(API_URL_HOME.homeToday(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const merchantMid = (params: MerchantMidParams) => {
let headerOptions = {
menuId: 39,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<MerchantMidResponse>(API_URL_MERCHANT.merchantMid(params.mid), params),
axios.post<MerchantMidResponse>(API_URL_MERCHANT.merchantMid(params.mid), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const merchantMidStatus = (params: MerchantMidStatusParams) => {
let headerOptions = {
menuId: 40,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<MerchantMidStatusResponse>(API_URL_MERCHANT.merchantMidStatus(params.mid), params),
axios.post<MerchantMidStatusResponse>(API_URL_MERCHANT.merchantMidStatus(params.mid), params, options),
);
};

View File

@@ -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),
);

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsCalendar = (params: SettlementsCalendarParams) => {
let headerOptions = {
menuId: 36,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsCalendarResponse>(API_URL_SETTLEMENT.settlementsCalendar(), params),
axios.post<SettlementsCalendarResponse>(API_URL_SETTLEMENT.settlementsCalendar(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsHistoryDetail = (params: SettlementsHistoryDetailParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsHistoryDetailResponse>(API_URL_SETTLEMENT.settlementsHistoryDetail(), params),
axios.post<SettlementsHistoryDetailResponse>(API_URL_SETTLEMENT.settlementsHistoryDetail(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsHistory = (params: SettlementsHistoryParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsHistoryResponse>(API_URL_SETTLEMENT.settlementsHistory(), params),
axios.post<SettlementsHistoryResponse>(API_URL_SETTLEMENT.settlementsHistory(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsHistorySummary = (params: SettlementsHistorySummaryParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsHistorySummaryResponse>(API_URL_SETTLEMENT.settlementsHistorySummary(), params),
axios.post<SettlementsHistorySummaryResponse>(API_URL_SETTLEMENT.settlementsHistorySummary(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsTransactionDetail = (params: SettlementsTransactionDetailParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsTransactionDetailResponse>(API_URL_SETTLEMENT.settlementsTransactionDetail(), params),
axios.post<SettlementsTransactionDetailResponse>(API_URL_SETTLEMENT.settlementsTransactionDetail(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsTransactionList = (params: SettlementsTransactionListParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsTransactionListResponse>(API_URL_SETTLEMENT.settlementsTransactionList(), params),
axios.post<SettlementsTransactionListResponse>(API_URL_SETTLEMENT.settlementsTransactionList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const settlementsTransactionSummary = (params: SettlementsTransactionSummaryParams) => {
let headerOptions = {
menuId: 37,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<SettlementsTransactionSummaryResponse>(API_URL_SETTLEMENT.settlementsTransactionSummary(), params),
axios.post<SettlementsTransactionSummaryResponse>(API_URL_SETTLEMENT.settlementsTransactionSummary(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const faqList = (params: FaqListParams) => {
let headerOptions = {
menuId: 63,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<FaqListResponse>(API_URL_SUPPORT.faqList(), params),
axios.post<FaqListResponse>(API_URL_SUPPORT.faqList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const noticeDetail = (params: NoticeDetailParams) => {
let headerOptions = {
menuId: 62,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<NoticeDetailResponse>(API_URL_SUPPORT.noticeDetail(), params),
axios.post<NoticeDetailResponse>(API_URL_SUPPORT.noticeDetail(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const noticeList = (params: NoticeListParams) => {
let headerOptions = {
menuId: 62,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<NoticeListResponse>(API_URL_SUPPORT.noticeList(), params),
axios.post<NoticeListResponse>(API_URL_SUPPORT.noticeList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const qnaList = (params: QnaListParams) => {
let headerOptions = {
menuId: 64,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<QnaListResponse>(API_URL_SUPPORT.qnaList(), params),
axios.post<QnaListResponse>(API_URL_SUPPORT.qnaList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const qnaSave = (params: QnaSaveParams) => {
let headerOptions = {
menuId: 64,
apiType: 'INSERT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<QnaSaveResponse>(API_URL_SUPPORT.qnaSave(), params),
axios.post<QnaSaveResponse>(API_URL_SUPPORT.qnaSave(), params, options),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const businessProperty = (params: BusinessPropertyParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<BusinessPropertyResponse>(API_URL_USER.businessProperty(), params),
axios.post<BusinessPropertyResponse>(API_URL_USER.businessProperty(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const login = (params: LoginParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<LoginResponse>(API_URL.login(), params),
axios.post<LoginResponse>(API_URL.login(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const shortcutDefault = (params: ShortcutDefaultParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<ShortcutDefaultResponse>(API_URL_USER.shortcutDefault(), params),
axios.post<ShortcutDefaultResponse>(API_URL_USER.shortcutDefault(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const shortcutSave = (params: ShortcutSaveParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<ShortcutSaveResponse>(API_URL_USER.shortcutSave(), params),
axios.post<ShortcutSaveResponse>(API_URL_USER.shortcutSave(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const shortcutUser = (params: ShortcutUserParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<ShortcutUserResponse>(API_URL_USER.shortcutUser(), params),
axios.post<ShortcutUserResponse>(API_URL_USER.shortcutUser(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userChangeCancelPassword = (params: ChangeCancelPasswordParams) => {
let headerOptions = {
menuId: 46,
apiType: 'UPDATE'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<ChangeCancelPasswordResponse>(API_URL_USER.userChangeCancelPassword(), params),
axios.post<ChangeCancelPasswordResponse>(API_URL_USER.userChangeCancelPassword(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userChangePassword = (params: ChangePasswordParams) => {
let headerOptions = {
menuId: 46,
apiType: 'UPDATE'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<ChangePasswordResponse>(API_URL_USER.changePassword(), params),
axios.post<ChangePasswordResponse>(API_URL_USER.changePassword(), params, options),
);
};

View File

@@ -23,10 +23,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userCreate = async (params: UserCreateParams): Promise<UserCreateMutationResponse> => {
let headerOptions = {
menuId: 45,
apiType: 'INSERT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
try {
const response = await axios.post<UserCreateResponse>(API_URL_USER.userCreate(), params);
const response = await axios.post<UserCreateResponse>(API_URL_USER.userCreate(), params, options);
return { status: true, data: response.data };
} catch (error: any) {
return {

View File

@@ -9,8 +9,18 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userExistsUserid = (usrId: string) => {
let headerOptions = {
menuId: 45,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserExistsUseridResponse>(API_URL_USER.userExistsUserid(usrId)),
);

View File

@@ -8,9 +8,19 @@ import {
useQuery,
UseQueryOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userExistsUserid = async (usrid: string) => {
const response = await axios.post<UserExistsUseridResponse>(API_URL_USER.userExistsUserid(usrid));
let headerOptions = {
menuId: 45,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
const response = await axios.post<UserExistsUseridResponse>(API_URL_USER.userExistsUserid(usrid), options);
return response.data;
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userFindAuthMethod = (params: UserFindAuthMethodParams) => {
let headerOptions = {
menuId: 45,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserFindAuthMethodResponse>(API_URL_USER.findAuthMethod(), params),
axios.post<UserFindAuthMethodResponse>(API_URL_USER.findAuthMethod(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userFind = (params: UserFindParams) => {
let headerOptions = {
menuId: 45,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserFindResponse>(API_URL_USER.findUser(), params),
axios.post<UserFindResponse>(API_URL_USER.findUser(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userMenuPermissions = (params: UserMenuPermissionsParams) => {
let headerOptions = {
menuId: 45,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserMenuPermissionsResponse>(API_URL_USER.findMenuPermissions(), params),
axios.post<UserMenuPermissionsResponse>(API_URL_USER.findMenuPermissions(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userMenuPermissionsSave = (params: UserMenuPermissionsSaveParams) => {
let headerOptions = {
menuId: 45,
apiType: 'INSERT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserMenuPermissionsSaveResponse>(API_URL_USER.saveMenuPermissions(), params),
axios.post<UserMenuPermissionsSaveResponse>(API_URL_USER.saveMenuPermissions(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userModifyAuthMethod = (params: UserModifyAuthMethodParams) => {
let headerOptions = {
menuId: 45,
apiType: 'UPDATE'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserModifyAuthMethodResponse>(API_URL_USER.modifyAuthMethod(), params),
axios.post<UserModifyAuthMethodResponse>(API_URL_USER.modifyAuthMethod(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userUpdatePermissions = (params: UserUpdatePermissionsParams) => {
let headerOptions = {
menuId: 45,
apiType: 'UPDATE'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<UserUpdatePermissionsResponse>(API_URL_USER.updatePermissions(), params),
axios.post<UserUpdatePermissionsResponse>(API_URL_USER.updatePermissions(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const vatReturnBreakdown = (params: VatReturnBreakdownParams) => {
let headerOptions = {
menuId: 48,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<VatReturnBreakdownResponse>(API_URL_VAT_RETURN.vatReturnBreakdown(), params),
axios.post<VatReturnBreakdownResponse>(API_URL_VAT_RETURN.vatReturnBreakdown(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const vatReturnDetail = (params: VatReturnDetailParams) => {
let headerOptions = {
menuId: 48,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<VatReturnDetailResponse>(API_URL_VAT_RETURN.vatReturnDetail(), params),
axios.post<VatReturnDetailResponse>(API_URL_VAT_RETURN.vatReturnDetail(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const vatReturnList = (params: VatReturnListParams) => {
let headerOptions = {
menuId: 48,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<VatReturnListResponse>(API_URL_VAT_RETURN.vatReturnList(), params),
axios.post<VatReturnListResponse>(API_URL_VAT_RETURN.vatReturnList(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const vatReturnReferenceRequest = (params: VatReturnReferenceRequestParams) => {
let headerOptions = {
menuId: 49,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<VatReturnReferenceRequestResponse>(API_URL_VAT_RETURN.vatReturnReferenceRequest(), params),
axios.post<VatReturnReferenceRequestResponse>(API_URL_VAT_RETURN.vatReturnReferenceRequest(), params, options),
);
};

View File

@@ -10,10 +10,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const vatReturnTaxInvoice = (params: VatReturnTaxInvoiceParams) => {
let headerOptions = {
menuId: 48,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<VatReturnTaxInvoiceResponse>(API_URL_VAT_RETURN.vatReturnTaxInvoice(), params),
axios.post<VatReturnTaxInvoiceResponse>(API_URL_VAT_RETURN.vatReturnTaxInvoice(), params, options),
);
};