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,12 +10,22 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesCacheRefreshByCodeCl = ({
codeCl
}: CodesCacheRefreshByCodeClParams) => {
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<CodesCacheRefreshByCodeClResponse>(API_URL.codesCacheRefreshByCodelCl(codeCl)),
axios.post<CodesCacheRefreshByCodeClResponse>(API_URL.codesCacheRefreshByCodelCl(codeCl), options),
);
};

View File

@@ -7,6 +7,7 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesCacheRefresh = () => {
return resultify(

View File

@@ -11,6 +11,7 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const codesSelect = ({
codeCl,
@@ -26,6 +27,15 @@ export const codesSelect = ({
);
}
else{
let headerOptions = {
menuId: 0,
apiType: 'SELECT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
return resultify(
axios.post<CodesSelectGetResponse & CodesSelectPostResponse>(API_URL.codesSelect(), {
codeCl,
@@ -33,7 +43,7 @@ export const codesSelect = ({
code1,
code2,
useCl
}),
}, options),
);
}
};