에러 코드 네이밍 변경

This commit is contained in:
focp212@naver.com
2025-10-25 22:05:43 +09:00
parent db0418177c
commit 7e5f1e71a7
137 changed files with 408 additions and 419 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { API_URL_PAYMENT } from '@/shared/api/api-url-payment';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
PaymentCardParams,
PaymentCardResponse
@@ -17,8 +17,8 @@ export const paymentCard = (params: PaymentCardParams) => {
);
};
export const usePaymentCardMutation = (options?: UseMutationOptions<PaymentCardResponse, CBDCAxiosError, PaymentCardParams>) => {
const mutation = useMutation<PaymentCardResponse, CBDCAxiosError, PaymentCardParams>({
export const usePaymentCardMutation = (options?: UseMutationOptions<PaymentCardResponse, NiceAxiosError, PaymentCardParams>) => {
const mutation = useMutation<PaymentCardResponse, NiceAxiosError, PaymentCardParams>({
...options,
mutationFn: (params: PaymentCardParams) => paymentCard(params),
});

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { API_URL_PAYMENT } from '@/shared/api/api-url-payment';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
PaymentInstallmentDetailParams,
PaymentInstallmentDetailResponse
@@ -17,8 +17,8 @@ export const paymentInstallmentDetail = (params: PaymentInstallmentDetailParams)
);
};
export const usePaymentInstallmentDetailMutation = (options?: UseMutationOptions<PaymentInstallmentDetailResponse, CBDCAxiosError, PaymentInstallmentDetailParams>) => {
const mutation = useMutation<PaymentInstallmentDetailResponse, CBDCAxiosError, PaymentInstallmentDetailParams>({
export const usePaymentInstallmentDetailMutation = (options?: UseMutationOptions<PaymentInstallmentDetailResponse, NiceAxiosError, PaymentInstallmentDetailParams>) => {
const mutation = useMutation<PaymentInstallmentDetailResponse, NiceAxiosError, PaymentInstallmentDetailParams>({
...options,
mutationFn: (params: PaymentInstallmentDetailParams) => paymentInstallmentDetail(params),
});

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { API_URL_PAYMENT } from '@/shared/api/api-url-payment';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
PaymentInstallmentParams,
PaymentInstallmentResponse
@@ -17,8 +17,8 @@ export const paymentInstallment = (params: PaymentInstallmentParams) => {
);
};
export const usePaymentInstallmentMutation = (options?: UseMutationOptions<PaymentInstallmentResponse, CBDCAxiosError, PaymentInstallmentParams>) => {
const mutation = useMutation<PaymentInstallmentResponse, CBDCAxiosError, PaymentInstallmentParams>({
export const usePaymentInstallmentMutation = (options?: UseMutationOptions<PaymentInstallmentResponse, NiceAxiosError, PaymentInstallmentParams>) => {
const mutation = useMutation<PaymentInstallmentResponse, NiceAxiosError, PaymentInstallmentParams>({
...options,
mutationFn: (params: PaymentInstallmentParams) => paymentInstallment(params),
});

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { API_URL_PAYMENT } from '@/shared/api/api-url-payment';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
PaymentNonCardParams,
PaymentNonCardResponse
@@ -17,8 +17,8 @@ export const paymentNonCard = (params: PaymentNonCardParams) => {
);
};
export const usePaymentNonCardMutation = (options?: UseMutationOptions<PaymentNonCardResponse, CBDCAxiosError, PaymentNonCardParams>) => {
const mutation = useMutation<PaymentNonCardResponse, CBDCAxiosError, PaymentNonCardParams>({
export const usePaymentNonCardMutation = (options?: UseMutationOptions<PaymentNonCardResponse, NiceAxiosError, PaymentNonCardParams>) => {
const mutation = useMutation<PaymentNonCardResponse, NiceAxiosError, PaymentNonCardParams>({
...options,
mutationFn: (params: PaymentNonCardParams) => paymentNonCard(params),
});

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
import { API_URL_PAYMENT } from '@/shared/api/api-url-payment';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
PaymentNotificationDataParams,
PaymentNotificationDataResponse
@@ -17,8 +17,8 @@ export const paymentNotificationData = (params: PaymentNotificationDataParams) =
);
};
export const usePaymentNotificationDataMutation = (options?: UseMutationOptions<PaymentNotificationDataResponse, CBDCAxiosError, PaymentNotificationDataParams>) => {
const mutation = useMutation<PaymentNotificationDataResponse, CBDCAxiosError, PaymentNotificationDataParams>({
export const usePaymentNotificationDataMutation = (options?: UseMutationOptions<PaymentNotificationDataResponse, NiceAxiosError, PaymentNotificationDataParams>) => {
const mutation = useMutation<PaymentNotificationDataResponse, NiceAxiosError, PaymentNotificationDataParams>({
...options,
mutationFn: (params: PaymentNotificationDataParams) => paymentNotificationData(params),
});