log 관련

This commit is contained in:
focp212@naver.com
2025-10-29 17:11:48 +09:00
parent 4faa8affb0
commit f4963143aa
59 changed files with 637 additions and 56 deletions

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};

View File

@@ -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),
);
};