package go.kr.project.system.auth.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import go.kr.project.common.model.PagingVO;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * packageName    : go.kr.project.system.auth.model
 * fileName       : MenuProgramVO
 * author         : 시스템 관리자
 * date           : 2023-06-15
 * description    : 메뉴-프로그램 매핑 정보를 담는 VO 클래스
 * ===========================================================
 * DATE              AUTHOR             NOTE
 * -----------------------------------------------------------
 * 2023-06-15        시스템 관리자       최초 생성
 */
@EqualsAndHashCode(callSuper=true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MenuProgramVO extends PagingVO {

    private String menuId;

    private String programId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    private LocalDateTime regDttm;

    private String rgtr;

    // 추가 필드 - 조회용
    private String menuNm;
    private String menuDc;
    private String menuUrl;
    private String menuIcon;
    private Integer menuLevel;
    private Integer sortOrdr;
    private String upperMenuId;
    private String upperMenuNm;
    private String programNm;
    private String programDc;
    private String programUrl;
    private String useYn;
}
