package com.unicorn.hgzero.meeting.infra.dto.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 템플릿 상세 조회 응답 DTO
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TemplateDetailResponse {

    private String templateId;
    private String name;
    private String description;
    private String category;
    private boolean isActive;
    private int usageCount;
    private LocalDateTime createdAt;
    private LocalDateTime lastUsedAt;
    private String createdBy;
    
    // 섹션 목록
    private List<SectionDetail> sections;

    @Getter
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SectionDetail {
        private String sectionId;
        private String title;
        private String description;
        private String content;
        private int orderIndex;
        private boolean isRequired;
        private String inputType; // TEXT, TEXTAREA, MARKDOWN
        private String placeholder;
        private int maxLength;
        private boolean isEditable;
    }
}