fix. page api 수정된 구조에 맞춰 코드 수정

This commit is contained in:
clkim
2025-09-18 10:18:54 +09:00
parent 61022fb972
commit a9c5cc6bb0
19 changed files with 178 additions and 267 deletions

View File

@@ -54,20 +54,39 @@ export interface PageDataMetaTag {
page_title: string
}
// 리소스 타입
export interface PageDataResource {
resource_sort_order: number
resource_name: string
resource_type: string
groups: Record<string, any>
group_sets: Record<string, any>
// 리소스 그룹 타입
export interface PageDataResourceGroupResPath {
path_mo: string
path_pc?: string
}
// 리소스 그룹 타입
export interface PageDataResourceGroup {
group_type?: string
group_code?: string
res_path?: PageDataResourceGroupResPath
btn_info?: {
color_code_btn: string
color_code_txt: string
disabled: boolean
txt_btn_name: string
detail: Record<string, any>
}
display?: {
text: string
}
}
// 컴포넌트 타입
export interface PageDataComponent {
resources: PageDataResource[]
groups: PageDataResourceGroup[]
}
// 템플릿 컴포넌트 타입 - 두 가지 패턴 지원
export type PageDataTemplateComponents =
| Record<string, PageDataComponent> // 직접 PageDataComponent가 들어있는 패턴
| { group_sets: Record<string, any> } // group_sets 안에 PageDataComponent가 들어있는 패턴
// LNB 메뉴 타입
export interface PageDataLnbMenu {
path_code: string
@@ -86,13 +105,7 @@ export interface PageDataTemplate {
page_ver_tmpl_name: string
page_ver_tmpl_name_en: string
template_code: string
components_: PageDataTemplateComponent
// components: string // JSON string
}
// 템플릿 컴포넌트 타입
export interface PageDataTemplateComponent {
components: Record<string, PageDataComponent>
components: PageDataTemplateComponents
}
// ===== API 관련 타입들 =====