api 분리
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/shared/api/urls';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export const faqList = (params: FaqListParams) => {
|
||||
return resultify(
|
||||
axios.post<FaqListResponse>(API_URL.faqList(), params),
|
||||
axios.post<FaqListResponse>(API_URL_SUPPORT.faqList(), params),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/shared/api/urls';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export const noticeDetail = (params: NoticeDetailParams) => {
|
||||
return resultify(
|
||||
axios.post<NoticeDetailResponse>(API_URL.noticeDetail(), params),
|
||||
axios.post<NoticeDetailResponse>(API_URL_SUPPORT.noticeDetail(), params),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/shared/api/urls';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export const noticeList = (params: NoticeListParams) => {
|
||||
return resultify(
|
||||
axios.post<NoticeListResponse>(API_URL.noticeList(), params),
|
||||
axios.post<NoticeListResponse>(API_URL_SUPPORT.noticeList(), params),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/shared/api/urls';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export const qnaList = (params: QnaListParams) => {
|
||||
return resultify(
|
||||
axios.post<QnaListResponse>(API_URL.qnaList(), params),
|
||||
axios.post<QnaListResponse>(API_URL_SUPPORT.qnaList(), params),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL } from '@/shared/api/urls';
|
||||
import { API_URL_SUPPORT } from '@/shared/api/api-url-support';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export const qnaSave = (params: QnaSaveParams) => {
|
||||
return resultify(
|
||||
axios.post<QnaSaveResponse>(API_URL.qnaSave(), params),
|
||||
axios.post<QnaSaveResponse>(API_URL_SUPPORT.qnaSave(), params),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user