log 관련
This commit is contained in:
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const faqList = (params: FaqListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 63,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<FaqListResponse>(API_URL_SUPPORT.faqList(), params),
|
||||
axios.post<FaqListResponse>(API_URL_SUPPORT.faqList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const noticeDetail = (params: NoticeDetailParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 62,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<NoticeDetailResponse>(API_URL_SUPPORT.noticeDetail(), params),
|
||||
axios.post<NoticeDetailResponse>(API_URL_SUPPORT.noticeDetail(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const noticeList = (params: NoticeListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 62,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<NoticeListResponse>(API_URL_SUPPORT.noticeList(), params),
|
||||
axios.post<NoticeListResponse>(API_URL_SUPPORT.noticeList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const qnaList = (params: QnaListParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 64,
|
||||
apiType: 'SELECT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<QnaListResponse>(API_URL_SUPPORT.qnaList(), params),
|
||||
axios.post<QnaListResponse>(API_URL_SUPPORT.qnaList(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -10,10 +10,20 @@ import {
|
||||
useMutation,
|
||||
UseMutationOptions
|
||||
} from '@tanstack/react-query';
|
||||
import { getHeaderUserAgent } from '@/shared/constants/url';
|
||||
|
||||
export const qnaSave = (params: QnaSaveParams) => {
|
||||
let headerOptions = {
|
||||
menuId: 64,
|
||||
apiType: 'INSERT'
|
||||
};
|
||||
let options = {
|
||||
headers: {
|
||||
'X-User-Agent': getHeaderUserAgent(headerOptions)
|
||||
}
|
||||
};
|
||||
return resultify(
|
||||
axios.post<QnaSaveResponse>(API_URL_SUPPORT.qnaSave(), params),
|
||||
axios.post<QnaSaveResponse>(API_URL_SUPPORT.qnaSave(), params, options),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user