From 4c15b99d9586aa48693213c78c02fba4639ebb85 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 1 Jul 2025 11:47:47 +0000 Subject: (최겸) 인포메이션 기능 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/informationColumnsConfig.ts | 27 +++++-------------- config/noticeColumnsConfig.ts | 54 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 21 deletions(-) create mode 100644 config/noticeColumnsConfig.ts (limited to 'config') diff --git a/config/informationColumnsConfig.ts b/config/informationColumnsConfig.ts index 6357cfa3..508cb846 100644 --- a/config/informationColumnsConfig.ts +++ b/config/informationColumnsConfig.ts @@ -10,9 +10,9 @@ export interface InformationColumnConfig { export const informationColumnsConfig: InformationColumnConfig[] = [ { - id: "pageCode", - label: "페이지 코드", - excelHeader: "페이지 코드", + id: "pagePath", + label: "페이지 경로", + excelHeader: "페이지 경로", }, { id: "pageName", @@ -20,24 +20,9 @@ export const informationColumnsConfig: InformationColumnConfig[] = [ excelHeader: "페이지명", }, { - id: "title", - label: "제목", - excelHeader: "제목", - }, - { - id: "description", - label: "설명", - excelHeader: "설명", - }, - { - id: "noticeTitle", - label: "공지사항 제목", - excelHeader: "공지사항 제목", - }, - { - id: "noticeContent", - label: "공지사항 내용", - excelHeader: "공지사항 내용", + id: "informationContent", + label: "내용", + excelHeader: "내용", }, { id: "attachmentFileName", diff --git a/config/noticeColumnsConfig.ts b/config/noticeColumnsConfig.ts new file mode 100644 index 00000000..9e9565fb --- /dev/null +++ b/config/noticeColumnsConfig.ts @@ -0,0 +1,54 @@ +import { Notice } from "@/db/schema/notice" + +export interface NoticeColumnConfig { + id: keyof Notice + label: string + group?: string + excelHeader?: string + type?: string +} + +export const noticeColumnsConfig: NoticeColumnConfig[] = [ + { + id: "id", + label: "ID", + excelHeader: "ID", + }, + { + id: "pagePath", + label: "페이지 경로", + excelHeader: "페이지 경로", + }, + { + id: "title", + label: "제목", + excelHeader: "제목", + }, + { + id: "content", + label: "내용", + excelHeader: "내용", + }, + { + id: "authorId", + label: "작성자 ID", + excelHeader: "작성자 ID", + }, + { + id: "isActive", + label: "활성 상태", + excelHeader: "활성 상태", + }, + { + id: "createdAt", + label: "생성일", + excelHeader: "생성일", + type: "date", + }, + { + id: "updatedAt", + label: "수정일", + excelHeader: "수정일", + type: "date", + }, +] \ No newline at end of file -- cgit v1.2.3