로그인로그 수정 및 API 로그 추가, sort 데이터타입 수정정

This commit is contained in:
2025-06-27 20:38:45 +09:00
parent 70832bae82
commit 932ae3f961
16 changed files with 535 additions and 87 deletions
@@ -0,0 +1,20 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
ApiLogList,
ApiLogParams,
ApiLogService,
} from "../model/apilog-interface";
export class ApiLogApiService implements ApiLogService {
public async getApiLogList(params: ApiLogParams): Promise<ApiLogList> {
const response = await client.get<ApiLogList>(
`${ENDPOINT.USER_SERVICE.APILOG}`,
{ params },
);
return response.data;
}
}
export const ApiLogApi = new ApiLogApiService();
+6
View File
@@ -0,0 +1,6 @@
export { ApiLogApi } from "./api/apilog-service";
export type {
ApiLog,
ApiLogParams,
} from "./model/apilog-interface";
@@ -0,0 +1,27 @@
import type { PageableList, PageableParams } from "@/shared/model";
export interface ApiLogParams extends PageableParams {
siteId?: string;
userId?: string;
apiHttpPmhd?: string;
dmndUrl?: string;
ipAddr?: string;
searchDateFrom?: string;
searchDateTo?: string;
}
export interface ApiLog {
id: string;
siteId: string;
userId: string;
apiHttpPmhd: string;
dmndUrl: string;
ipAddr: string;
dmndDt: string;
}
export type ApiLogList = PageableList<ApiLog>;
export interface ApiLogService {
getApiLogList: (params: ApiLogParams) => Promise<ApiLogList>;
}
@@ -1,7 +1,6 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
LoginlogInfo,
LoginlogList,
LoginlogParams,
LoginlogService,
@@ -16,12 +15,6 @@ export class LoginlogApiService implements LoginlogService {
return response.data;
}
public async getLoginlogInfo(lgnSn: string): Promise<LoginlogInfo> {
const response = await client.get<LoginlogInfo>(
`${ENDPOINT.USER_SERVICE.LOGINLOG}/${lgnSn}`,
);
return response.data;
}
}
export const LoginlogApi = new LoginlogApiService();
+2 -1
View File
@@ -1,5 +1,6 @@
export { LoginlogApiService } from "./api/loginlog-service";
export { LoginlogApi } from "./api/loginlog-service";
export type {
Loginlog,
LoginlogParams,
} from "./model/loginlog-interface";
@@ -1,37 +1,29 @@
import type { PageableList, PageableParams } from "@/shared/model";
export interface LoginlogParams extends PageableParams {
lgnSn?: string;
userId?: string;
siteId?: string;
userId?: string;
errOcrnYn?: string;
remoteIp?: string;
lgnMthd?: string;
lgnErrCd?: string;
searchDateFrom?: string;
searchDateTo?: string;
}
export interface Loginlog {
lgnSn: string;
lgnDt: string;
userId: string;
lgnIp: string;
lgnMethodCd: string;
errOcrnYn: string;
lgnErrCd: string;
id: string;
siteId: string;
}
export interface LoginlogInfo {
lgnSn: string;
lgnDt: string;
userId: string;
lgnIp: string;
lgnMethodCd: string;
errOcrnYn: string;
remoteIp: string;
lgnMthd: string;
lgnErrCd: string;
siteId: string;
lgnDt: string;
}
export type LoginlogList = PageableList<Loginlog>;
export interface LoginlogService {
getLoginlogList: (params: LoginlogParams) => Promise<LoginlogList>;
getLoginlogInfo: (lgnSn: string) => Promise<LoginlogInfo>;
getLoginlogList: (params: LoginlogParams) => Promise<LoginlogList>;
}