에러 코드 네이밍 변경

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_TRANSACTION } from '@/shared/api/api-url-transaction';
import { resultify } from '@/shared/lib/resultify';
import { CBDCAxiosError } from '@/shared/@types/error';
import { NiceAxiosError } from '@/shared/@types/error';
import {
BillingChargeParams,
BillingChargeResponse
@@ -17,8 +17,8 @@ export const billingCharge = (params: BillingChargeParams) => {
);
};
export const useBillingChargeMutation = (options?: UseMutationOptions<BillingChargeResponse, CBDCAxiosError, BillingChargeParams>) => {
const mutation = useMutation<BillingChargeResponse, CBDCAxiosError, BillingChargeParams>({
export const useBillingChargeMutation = (options?: UseMutationOptions<BillingChargeResponse, NiceAxiosError, BillingChargeParams>) => {
const mutation = useMutation<BillingChargeResponse, NiceAxiosError, BillingChargeParams>({
...options,
mutationFn: (params: BillingChargeParams) => billingCharge(params),
});