[common/components] feat: 접속 로그 저장 기능 작업

This commit is contained in:
2025-07-31 12:45:01 +09:00
parent 26f222525d
commit 3f85aa676c
4 changed files with 50 additions and 1 deletions
@@ -0,0 +1,34 @@
import { ENDPOINT } from "../config";
import { getApiClient } from "./client";
export interface ConnectionLog {
cntnSn: number;
cntnDt: string;
cntnId: string;
cntnIp: string;
cntnRgn: string;
wbsrKnd: string;
menuCd: number;
siteId: string;
urlPath: string;
}
export interface ConnectionLogPayload {
cntnId?: string;
cntnIp?: string;
cntnRgn?: string;
wbsrKnd?: string;
menuCd?: number | null;
siteId?: string;
urlPath: string;
}
const client = getApiClient();
export const saveConnectionLog = async (payload: ConnectionLogPayload) => {
const response = await client.post<ConnectionLog>(
`${ENDPOINT.CMS_SERVICE.CONNECTION_LOG}`,
payload,
);
return response.data;
};
@@ -1,4 +1,5 @@
export * from "./client";
export * from "./connection-log";
export * from "./menu";
export * from "./popup";
export * from "./site";