- 부가서비스 헤더 로그 추가
This commit is contained in:
@@ -2,21 +2,27 @@ 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 {
|
||||
DetailResponse,
|
||||
TitleInfo,
|
||||
DetailInfo
|
||||
} from '../../model/types';
|
||||
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderAuthDetailParams, ExtensionAccountHolderAuthDetailResponse } from '../../model/account-holder-auth/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderAuthDetail = async (params: ExtensionAccountHolderAuthDetailParams): Promise<ExtensionAccountHolderAuthDetailResponse> => {
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderAuthDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthDetail(), params),
|
||||
);
|
||||
let headerOptions = {
|
||||
menuId: 59,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
}
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderAuthDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
export const useExtensionAccountHolderAuthDetailMutation = (options?: UseMutationOptions<ExtensionAccountHolderAuthDetailResponse, NiceAxiosError, ExtensionAccountHolderAuthDetailParams>) => {
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderAuthDownloadExcelParams, ExtensionAccountHolderAuthDownloadExcelResponse } from '../../model/account-holder-auth/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderAuthDownloadExcel = (params: ExtensionAccountHolderAuthDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 59,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
}
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderAuthDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthDownlaodExcel(), params),
|
||||
axios.post<ExtensionAccountHolderAuthDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthDownlaodExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderAuthListParams, ExtensionAccountHolderAuthListResponse } from '../../model/account-holder-auth/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderAuthList = (params: ExtensionAccountHolderAuthListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 59,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
}
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderAuthListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthList(), params),
|
||||
axios.post<ExtensionAccountHolderAuthListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderAuthList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -12,10 +12,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderSearchDetailParams, ExtensionAccountHolderSearchDetailResponse } from '../../model/account-holder-search/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderSearchDetail = (params: ExtensionAccountHolderSearchDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 60,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderSearchDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchDetail(), params),
|
||||
axios.post<ExtensionAccountHolderSearchDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderSearchDownloadExcelParams, ExtensionAccountHolderSearchDownloadExcelResponse } from '../../model/account-holder-search/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderSearchDownloadExcel = (params: ExtensionAccountHolderSearchDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 60,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderSearchDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchDownloadExcel(), params),
|
||||
axios.post<ExtensionAccountHolderSearchDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -8,10 +8,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderSearchListParams, ExtensionAccountHolderSearchListResponse } from '../../model/account-holder-search/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderSearchList = (params: ExtensionAccountHolderSearchListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 60,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderSearchListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchList(), params),
|
||||
axios.post<ExtensionAccountHolderSearchListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionAccountHolderSearchRequestParams, ExtensionAccountHolderSearchRequestResponse } from '../../model/account-holder-search/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAccountHolderSearchRequest = (params: ExtensionAccountHolderSearchRequestParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 60,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAccountHolderSearchRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchRequest(), params),
|
||||
axios.post<ExtensionAccountHolderSearchRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionAccountHolderSearchRequest(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionAlimtalkDetailParams,
|
||||
ExtensionAlimtalkDetailResponse
|
||||
} from '../../model/alimtalk/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAlimtalkDetail = (params: ExtensionAlimtalkDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 58,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAlimtalkDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkDetail(), params),
|
||||
axios.post<ExtensionAlimtalkDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionAlimtalkDownloadExcelParams,
|
||||
ExtensionAlimtalkDownloadExcelResponse
|
||||
} from '../../model/alimtalk/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAlimtalkDownloadExcel = (params: ExtensionAlimtalkDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 58,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAlimtalkDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkDownloadExcel(), params),
|
||||
axios.post<ExtensionAlimtalkDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionAlimtalkListParams,
|
||||
ExtensionAlimtalkListResponse
|
||||
} from '../../model/alimtalk/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAlimtalkList = (params: ExtensionAlimtalkListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 58,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAlimtalkListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkList(), params),
|
||||
axios.post<ExtensionAlimtalkListResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionAlimtalkSettingDetailParams,
|
||||
ExtensionAlimtalkSettingDetailResponse
|
||||
} from '../../model/alimtalk/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAlimtalkSettingDetail = (params: ExtensionAlimtalkSettingDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 58,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAlimtalkSettingDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkSettingDetail(), params),
|
||||
axios.post<ExtensionAlimtalkSettingDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkSettingDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,19 +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 {
|
||||
ExtensionAlimtalkSettingSaveParams,
|
||||
ExtensionAlimtalkSettingSaveResponse
|
||||
} from '../../model/alimtalk/types';
|
||||
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionAlimtalkSettingSave = (params: ExtensionAlimtalkSettingSaveParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 58,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionAlimtalkSettingSaveResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkSettingSave(), params),
|
||||
axios.post<ExtensionAlimtalkSettingSaveResponse>(API_URL_ADDITIONAL_SERVICE.extensionAlimtalkSettingSave(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionArsApplyParams,
|
||||
ExtensionArsApplyResponse
|
||||
} from '../../model/ars/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionArsApply = (params: ExtensionArsApplyParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 52,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionArsApplyResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsApply(), params),
|
||||
axios.post<ExtensionArsApplyResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsApply(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionArsDetailParams,
|
||||
ExtensionArsDetailResponse
|
||||
} from '../../model/ars/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionArsDetail = (params: ExtensionArsDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 52,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionArsDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsDetail(), params),
|
||||
axios.post<ExtensionArsDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionArsDownloadExcelParams,
|
||||
ExtensionArsDownloadExcelResponse
|
||||
} from '../../model/ars/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionArsDownloadExcel = (params: ExtensionArsDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 52,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionArsDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsDownloadExcel(), params),
|
||||
axios.post<ExtensionArsDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionArsListParams,
|
||||
ExtensionArsListResponse
|
||||
} from '../../model/ars/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionArsList = (params: ExtensionArsListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 52,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionArsListResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsList(), params),
|
||||
axios.post<ExtensionArsListResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionArsResendParams,
|
||||
ExtensionArsResendResponse
|
||||
} from '../../model/ars/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionArsResend = (params: ExtensionArsResendParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 52,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionArsResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsResend(), params),
|
||||
axios.post<ExtensionArsResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionArsResend(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
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 {
|
||||
ExtensionFaceAuthDetailParams,
|
||||
ExtensionFaceAuthDetailResponse
|
||||
} from '../../model/face-auth/types';
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFaceAuthDetail = (params: ExtensionFaceAuthDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 65,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFaceAuthDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionFaceAuthDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
export const useExtensionFaceAuthDetailMutation = (options?: UseMutationOptions<ExtensionFaceAuthDetailResponse, NiceAxiosError, ExtensionFaceAuthDetailParams>) => {
|
||||
const mutation = useMutation<ExtensionFaceAuthDetailResponse, NiceAxiosError, ExtensionFaceAuthDetailParams>({
|
||||
...options,
|
||||
mutationFn: (params: ExtensionFaceAuthDetailParams) => extensionFaceAuthDetail(params),
|
||||
});
|
||||
|
||||
return {
|
||||
...mutation,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFaceAuthDownloadExcel = (params: ExtensionFaceAuthExcelDownlaodPrams) => {
|
||||
let headerOptions = {
|
||||
menuId: 65,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFaceAuthExcelDownlaodResponse>(API_URL_ADDITIONAL_SERVICE.extensionFaceAuthExcelDownload(), params),
|
||||
axios.post<ExtensionFaceAuthExcelDownlaodResponse>(API_URL_ADDITIONAL_SERVICE.extensionFaceAuthExcelDownload(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,16 +2,26 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionFaceAuthListParams, ExtensionFaceAuthListResponse } from '../../model/face-auth/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFaceAuthList = (params: ExtensionFaceAuthListParams) => {
|
||||
return resultify(
|
||||
axios.post<ExtensionFaceAuthListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFaceAuthList(), params),
|
||||
);
|
||||
let headerOptions = {
|
||||
menuId: 65,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFaceAuthListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFaceAuthList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
export const useExtensionFaceAuthListtMutation = (options?: UseMutationOptions<ExtensionFaceAuthListResponse, NiceAxiosError, ExtensionFaceAuthListParams>) => {
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountDownloadReceipt = (params: ExtensionFundAccountDownloadReceiptParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountDownloadReceiptResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountDownloadReceipt(), params),
|
||||
axios.post<ExtensionFundAccountDownloadReceiptResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountDownloadReceipt(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountResultDetailParams,
|
||||
ExtensionFundAccountResultDetailResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountResultDetail = (params: ExtensionFundAccountResultDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountResultDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultDetail(), params),
|
||||
axios.post<ExtensionFundAccountResultDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountResultExcelParams,
|
||||
ExtensionFundAccountResultExcelResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountResultExcel = (params: ExtensionFundAccountResultExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountResultExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultExcel(), params),
|
||||
axios.post<ExtensionFundAccountResultExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountResultListParams,
|
||||
ExtensionFundAccountResultListResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountResultList = (params: ExtensionFundAccountResultListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountResultListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultList(), params),
|
||||
axios.post<ExtensionFundAccountResultListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountResultSummaryParams,
|
||||
ExtensionFundAccountResultSummaryResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountResultSummary = (params: ExtensionFundAccountResultSummaryParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountResultSummaryResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultSummary(), params),
|
||||
axios.post<ExtensionFundAccountResultSummaryResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountResultSummary(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountTransferDetailParams,
|
||||
ExtensionFundAccountTransferDetailResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountTransferDetail = (params: ExtensionFundAccountTransferDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountTransferDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferDetail(), params),
|
||||
axios.post<ExtensionFundAccountTransferDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountTransferExcelParams,
|
||||
ExtensionFundAccountTransferExcelResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountTransferExcel = (params: ExtensionFundAccountTransferExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountTransferExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferExcel(), params),
|
||||
axios.post<ExtensionFundAccountTransferExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountTransferListParams,
|
||||
ExtensionFundAccountTransferListResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountTransferList = (params: ExtensionFundAccountTransferListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountTransferListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferList(), params),
|
||||
axios.post<ExtensionFundAccountTransferListResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionFundAccountTransferRegistParams,
|
||||
ExtensionFundAccountTransferRegistResponse
|
||||
} from '../../model/fund-account/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountTransferRegist = (params: ExtensionFundAccountTransferRegistParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountTransferRegistResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferRegist(), params),
|
||||
axios.post<ExtensionFundAccountTransferRegistResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferRegist(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -4,10 +4,20 @@ import { API_URL_ADDITIONAL_SERVICE } from "@/shared/api/api-url-additional-serv
|
||||
import axios from "axios";
|
||||
import { useMutation, UseMutationOptions } from "@tanstack/react-query";
|
||||
import { NiceAxiosError } from "@/shared/@types/error";
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionFundAccountTransferRequest = (params: ExtensionFundAccountTransferRequestParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 55,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionFundAccountTransferRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferRequest(), params),
|
||||
axios.post<ExtensionFundAccountTransferRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionFundAccountTransferRequest(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -13,10 +13,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayHistoryDetailParams, ExtensionLinkPayHistoryDetailResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayHistoryDetail = async (params: ExtensionLinkPayHistoryDetailParams): Promise<DetailResponse> => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
const response = await resultify(
|
||||
axios.post<ExtensionLinkPayHistoryDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDetail(), params),
|
||||
axios.post<ExtensionLinkPayHistoryDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDetail(), params, options),
|
||||
);
|
||||
|
||||
const detailResponse: DetailResponse = {
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayHistoryDownloadExcelParams, ExtensionLinkPayHistoryDownloadExcelRespone } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayHistoryDownloadExcel = (params: ExtensionLinkPayHistoryDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayHistoryDownloadExcelRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDownloadExcel(), params),
|
||||
axios.post<ExtensionLinkPayHistoryDownloadExcelRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayHistoryListParams, ExtensionLinkPayHistoryListResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayHistoryListParam = (params: ExtensionLinkPayHistoryListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayHistoryListResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryList(), params),
|
||||
axios.post<ExtensionLinkPayHistoryListResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayHistoryResendParams, ExtensionLinkPayHistoryResendResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayHistoryResend = (params: ExtensionLinkPayHistoryResendParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayHistoryResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryResend(), params)
|
||||
axios.post<ExtensionLinkPayHistoryResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryResend(), params, options)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayRequestParams, ExtensionLinkPayRequestResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayRequest = (params: ExtensionLinkPayRequestParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentRequest(), params),
|
||||
axios.post<ExtensionLinkPayRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentRequest(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -4,10 +4,20 @@ import axios from "axios";
|
||||
import { API_URL_ADDITIONAL_SERVICE } from "@/shared/api/api-url-additional-service";
|
||||
import { useMutation, UseMutationOptions } from "@tanstack/react-query";
|
||||
import { NiceAxiosError } from "@/shared/@types/error";
|
||||
import { getHeaderUserAgent } from "@/shared/constants/url";
|
||||
|
||||
export const extensionLinkPaySeparateAction = (params: ExtensionLInkPaySeparateActionParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPaySeparateActionResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentSeparateAction(), params)
|
||||
axios.post<ExtensionLinkPaySeparateActionResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentSeparateAction(), params, options)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -4,10 +4,20 @@ import axios from "axios";
|
||||
import { API_URL_ADDITIONAL_SERVICE } from "@/shared/api/api-url-additional-service";
|
||||
import { useMutation, UseMutationOptions } from "@tanstack/react-query";
|
||||
import { NiceAxiosError } from "@/shared/@types/error";
|
||||
import { getHeaderUserAgent } from "@/shared/constants/url";
|
||||
|
||||
export const extensionLinkPaySeparateDetail = (params: ExtensionLinkPaySeparateDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPaySeparateDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentSeparateDetail(), params)
|
||||
axios.post<ExtensionLinkPaySeparateDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentSeparateDetail(), params, options)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayWaitDeleteParams, ExtensionLinkPayWaitDeleteRespone } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayWaitDelete = async (params: ExtensionLinkPayWaitDeleteParams)=> {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayWaitDeleteRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitDelete(), params)
|
||||
axios.post<ExtensionLinkPayWaitDeleteRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitDelete(), params, options)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -12,10 +12,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayWaitDetailParams, ExtensionLinkPayWaitDetailResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayWaitDetail = async (params: ExtensionLinkPayWaitDetailParams): Promise<DetailResponse> => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
const response = await resultify(
|
||||
axios.post<ExtensionLinkPayWaitDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitDetail(), params),
|
||||
axios.post<ExtensionLinkPayWaitDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitDetail(), params, options),
|
||||
);
|
||||
|
||||
const detailResponse: DetailResponse = {
|
||||
|
||||
@@ -7,10 +7,20 @@ import {
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayWaitDownloadExcelParams, ExtensionLinkPayWaitDownloadExcelRespone } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayWaitDownloadExcel = (params: ExtensionLinkPayWaitDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayWaitDownloadExcelRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDownloadExcel(), params),
|
||||
axios.post<ExtensionLinkPayWaitDownloadExcelRespone>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentHistoryDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionLinkPayWaitListParams, ExtensionLinkPayWaitListResponse } from '../../model/link-pay/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionLinkPayWaitListParam = (params: ExtensionLinkPayWaitListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 54,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionLinkPayWaitListResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitList(), params),
|
||||
axios.post<ExtensionLinkPayWaitListResponse>(API_URL_ADDITIONAL_SERVICE.extensionLinkPaymentWaitList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionPayoutDetailDownloadCertificateParams,
|
||||
ExtensionPayoutDetailDownloadCertificateResponse
|
||||
} from '../../model/payout/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionPayoutDetailDownloadCertificate = (params: ExtensionPayoutDetailDownloadCertificateParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 53,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionPayoutDetailDownloadCertificateResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutDetailDownloadCertificate(), params),
|
||||
axios.post<ExtensionPayoutDetailDownloadCertificateResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutDetailDownloadCertificate(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionPayoutDetailParams,
|
||||
ExtensionPayoutDetailResponse
|
||||
} from '../../model/payout/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionPayoutDetail = (params: ExtensionPayoutDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 53,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionPayoutDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutDetail(), params),
|
||||
axios.post<ExtensionPayoutDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionPayoutExcelParams,
|
||||
ExtensionPayoutExcelResponse
|
||||
} from '../../model/payout/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionPayoutExcel = (params: ExtensionPayoutExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 53,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionPayoutExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutExcel(), params),
|
||||
axios.post<ExtensionPayoutExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionPayoutListParams,
|
||||
ExtensionPayoutListResponse
|
||||
} from '../../model/payout/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionPayoutList = (params: ExtensionPayoutListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 53,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionPayoutListResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutList(), params),
|
||||
axios.post<ExtensionPayoutListResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionPayoutRequestParams,
|
||||
ExtensionPayoutRequestResponse
|
||||
} from '../../model/payout/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionPayoutRequest = (params: ExtensionPayoutRequestParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 53,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionPayoutRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutRequest(), params),
|
||||
axios.post<ExtensionPayoutRequestResponse>(API_URL_ADDITIONAL_SERVICE.extensionPayoutRequest(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionSmsDetailParams,
|
||||
ExtensionSmsDetailResponse
|
||||
} from '../../model/sms-payment/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionSmsDetail = (params: ExtensionSmsDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 57,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionSmsDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsDetail(), params),
|
||||
axios.post<ExtensionSmsDetailResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionSmsDownloadExcelParams,
|
||||
ExtensionSmsDownloadExcelResponse
|
||||
} from '../../model/sms-payment/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionSmsDownloadExcel = (params: ExtensionSmsDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 57,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionSmsDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsDownloadExcel(), params),
|
||||
axios.post<ExtensionSmsDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionSmsPaymentListParams,
|
||||
ExtensionSmsPaymentListResponse
|
||||
} from '../../model/sms-payment/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionSmsList = (params: ExtensionSmsPaymentListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 57,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionSmsPaymentListResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsList(), params),
|
||||
axios.post<ExtensionSmsPaymentListResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionSmsResendParams,
|
||||
ExtensionSmsResendResponse
|
||||
} from '../../model/sms-payment/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionSmsResend = (params: ExtensionSmsResendParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 57,
|
||||
apiType: 'UPDATE'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionSmsResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsResend(), params),
|
||||
axios.post<ExtensionSmsResendResponse>(API_URL_ADDITIONAL_SERVICE.extensionSmsResend(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,20 +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 {
|
||||
ExtensionCheckParams,
|
||||
ExtensionCheckResponse,
|
||||
ExtensionListParams,
|
||||
ExtensionListResponse
|
||||
ExtensionCheckResponse
|
||||
} from '../model/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionCheck = (params: ExtensionCheckParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 51,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionCheckResponse>(API_URL_ADDITIONAL_SERVICE.extensionCheck(), params),
|
||||
axios.post<ExtensionCheckResponse>(API_URL_ADDITIONAL_SERVICE.extensionCheck(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -3,15 +3,25 @@ import { API_URL_ADDITIONAL_SERVICE } from '@/shared/api/api-url-additional-serv
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionKeyinApplyParams, ExtensionKeyinApplyResponse } from '../model/key-in/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionKeyinApply = (params: ExtensionKeyinApplyParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 56,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionKeyinApplyResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinApply(), params),
|
||||
axios.post<ExtensionKeyinApplyResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinApply(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionKeyinDownloadExcelParams, ExtensionKeyinDownloadExcelResponse } from '../model/key-in/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionKeyinDownloadExcel = (params: ExtensionKeyinDownloadExcelParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 56,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionKeyinDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinDownloadExcel(), params),
|
||||
axios.post<ExtensionKeyinDownloadExcelResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinDownloadExcel(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,15 +2,25 @@ 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 {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { ExtensionKeyinListParams, ExtensionKeyinListResponse } from '../model/key-in/types';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionKeyinList = (params: ExtensionKeyinListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 56,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionKeyinListResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinList(), params),
|
||||
axios.post<ExtensionKeyinListResponse>(API_URL_ADDITIONAL_SERVICE.extensionKeyinList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
ExtensionListParams,
|
||||
ExtensionListResponse
|
||||
} from '../model/types';
|
||||
import {
|
||||
import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const extensionList = (params: ExtensionListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 51,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<ExtensionListResponse>(API_URL_ADDITIONAL_SERVICE.extensionList(), params),
|
||||
axios.post<ExtensionListResponse>(API_URL_ADDITIONAL_SERVICE.extensionList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -73,4 +73,22 @@ export interface ExtensionFaceAuthExcelDownlaodPrams {
|
||||
|
||||
export interface ExtensionFaceAuthExcelDownlaodResponse {
|
||||
status : boolean;
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthDetailParams {
|
||||
mid: string;
|
||||
cpid: string;
|
||||
}
|
||||
|
||||
export interface ExtensionFaceAuthDetailResponse {
|
||||
companyName?: string;
|
||||
mid?: string;
|
||||
groupId?: string;
|
||||
requestDate?: string;
|
||||
requestTime?: string;
|
||||
cpid?: string;
|
||||
userMallId?: string;
|
||||
transType?: FaceAuthTransType;
|
||||
authResult?: string;
|
||||
failReason?: string;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ export interface ExtensionLinkPayRequestParams extends ExtensionRequestParams {
|
||||
moid: string;
|
||||
paymentLimitDate: string;
|
||||
buyerName: string;
|
||||
email: string;
|
||||
phoneNumber: string;
|
||||
email?: string;
|
||||
phoneNumber?: string;
|
||||
isIdentity: boolean;
|
||||
identityType: IdentityType;
|
||||
identityValue: string;
|
||||
identityType?: IdentityType;
|
||||
identityValue?: string;
|
||||
language: Language;
|
||||
linkContentType: LinkContentType;
|
||||
}
|
||||
@@ -262,7 +262,18 @@ export interface ExtensionLinkPayHistoryResendParams extends ExtensionRequestPar
|
||||
}
|
||||
|
||||
export interface ExtensionLinkPayHistoryResendResponse {
|
||||
status: boolean
|
||||
status: boolean;
|
||||
data?: string;
|
||||
error?: {
|
||||
root?: string;
|
||||
errKey?: string;
|
||||
code?: string;
|
||||
message?: string;
|
||||
timestamp?: string;
|
||||
details?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user