[common/components] feat: 접속 로그 저장 기능 작업
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user