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

@@ -23,10 +23,20 @@ import {
useMutation,
UseMutationOptions
} from '@tanstack/react-query';
import { getHeaderUserAgent } from '@/shared/constants/url';
export const userCreate = async (params: UserCreateParams): Promise<UserCreateMutationResponse> => {
let headerOptions = {
menuId: 45,
apiType: 'INSERT'
};
let options = {
headers: {
'X-User-Agent': getHeaderUserAgent(headerOptions)
}
};
try {
const response = await axios.post<UserCreateResponse>(API_URL_USER.userCreate(), params);
const response = await axios.post<UserCreateResponse>(API_URL_USER.userCreate(), params, options);
return { status: true, data: response.data };
} catch (error: any) {
return {