log 관련
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user