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

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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

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

    @Size(max = 20)
    @NotNull
    private String roleId;

    @Size(max = 20)
    @NotNull
    private String menuId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime regDttm;

    @Size(max = 10)
    private String rgtr;

    // 추가 필드 - 조회용
    private String roleNm;
    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 useYn;
}
