에러 코드 네이밍 변경
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
FaqListParams,
|
||||
FaqListResponse
|
||||
@@ -17,8 +17,8 @@ export const faqList = (params: FaqListParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useFaqListMutation = (options?: UseMutationOptions<FaqListResponse, CBDCAxiosError, FaqListParams>) => {
|
||||
const mutation = useMutation<FaqListResponse, CBDCAxiosError, FaqListParams>({
|
||||
export const useFaqListMutation = (options?: UseMutationOptions<FaqListResponse, NiceAxiosError, FaqListParams>) => {
|
||||
const mutation = useMutation<FaqListResponse, NiceAxiosError, FaqListParams>({
|
||||
...options,
|
||||
mutationFn: (params: FaqListParams) => faqList(params),
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
NoticeDetailParams,
|
||||
NoticeDetailResponse
|
||||
@@ -17,8 +17,8 @@ export const noticeDetail = (params: NoticeDetailParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useNoticeDetailMutation = (options?: UseMutationOptions<NoticeDetailResponse, CBDCAxiosError, NoticeDetailParams>) => {
|
||||
const mutation = useMutation<NoticeDetailResponse, CBDCAxiosError, NoticeDetailParams>({
|
||||
export const useNoticeDetailMutation = (options?: UseMutationOptions<NoticeDetailResponse, NiceAxiosError, NoticeDetailParams>) => {
|
||||
const mutation = useMutation<NoticeDetailResponse, NiceAxiosError, NoticeDetailParams>({
|
||||
...options,
|
||||
mutationFn: (params: NoticeDetailParams) => noticeDetail(params),
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
NoticeListParams,
|
||||
NoticeListResponse
|
||||
@@ -17,8 +17,8 @@ export const noticeList = (params: NoticeListParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useNoticeListMutation = (options?: UseMutationOptions<NoticeListResponse, CBDCAxiosError, NoticeListParams>) => {
|
||||
const mutation = useMutation<NoticeListResponse, CBDCAxiosError, NoticeListParams>({
|
||||
export const useNoticeListMutation = (options?: UseMutationOptions<NoticeListResponse, NiceAxiosError, NoticeListParams>) => {
|
||||
const mutation = useMutation<NoticeListResponse, NiceAxiosError, NoticeListParams>({
|
||||
...options,
|
||||
mutationFn: (params: NoticeListParams) => noticeList(params),
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
QnaListParams,
|
||||
QnaListResponse
|
||||
@@ -17,8 +17,8 @@ export const qnaList = (params: QnaListParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useQnaListMutation = (options?: UseMutationOptions<QnaListResponse, CBDCAxiosError, QnaListParams>) => {
|
||||
const mutation = useMutation<QnaListResponse, CBDCAxiosError, QnaListParams>({
|
||||
export const useQnaListMutation = (options?: UseMutationOptions<QnaListResponse, NiceAxiosError, QnaListParams>) => {
|
||||
const mutation = useMutation<QnaListResponse, NiceAxiosError, QnaListParams>({
|
||||
...options,
|
||||
mutationFn: (params: QnaListParams) => qnaList(params),
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
QnaSaveParams,
|
||||
QnaSaveResponse
|
||||
@@ -17,8 +17,8 @@ export const qnaSave = (params: QnaSaveParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useQnaSaveMutation = (options?: UseMutationOptions<QnaSaveResponse, CBDCAxiosError, QnaSaveParams>) => {
|
||||
const mutation = useMutation<QnaSaveResponse, CBDCAxiosError, QnaSaveParams>({
|
||||
export const useQnaSaveMutation = (options?: UseMutationOptions<QnaSaveResponse, NiceAxiosError, QnaSaveParams>) => {
|
||||
const mutation = useMutation<QnaSaveResponse, NiceAxiosError, QnaSaveParams>({
|
||||
...options,
|
||||
mutationFn: (params: QnaSaveParams) => qnaSave(params),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user