feat: 모듈 API 관리 페이지 작업

This commit is contained in:
2025-04-16 15:18:15 +09:00
parent f264a08497
commit 49ce84254f
9 changed files with 567 additions and 6 deletions
@@ -0,0 +1,25 @@
import type { PageableList, PageableParams } from "@/shared/model";
export interface AuthorizationsParams extends PageableParams {
keywordType?: string;
keyword?: string;
}
export interface Authorizations {
authorizationNo: number;
authorizationName: string;
urlPatternValue: string;
httpMethodCode: string;
sortSeq: number;
useYn: string;
mdfr: string;
mdfcnDt: string;
}
export type AuthorizationsList = PageableList<Authorizations>;
export interface AuthorizationsService {
getAuthorizationsList(
params: AuthorizationsParams,
): Promise<AuthorizationsList>;
}
@@ -0,0 +1,39 @@
import dayjs from "dayjs";
import { type ColumnDef } from "@tanstack/react-table";
import type { Authorizations } from "./authorizations-interface";
export const columns: ColumnDef<Authorizations>[] = [
{
id: "no",
header: "NO",
cell: ({ row }) => row.index + 1,
},
{
accessorKey: "authorizationName",
header: "API 명",
},
{
accessorKey: "urlPatternValue",
header: "API URL",
},
{
accessorKey: "httpMethodCode",
header: "요청 메소드",
},
{
accessorKey: "useYn",
header: "사용여부",
},
{
accessorKey: "mdfr",
header: "최종수정자",
},
{
accessorKey: "mdfcnDt",
header: "최종수정일",
cell: ({ row }) => {
const date = dayjs(row.original.mdfcnDt);
return date.format("YYYY-MM-DD");
},
},
];