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

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * packageName    : go.kr.project.system.role.model
 * fileName       : RoleVO
 * author         : 시스템 관리자
 * date           : 2023-06-01
 * description    : 역할 정보를 담는 VO 클래스
 * ===========================================================
 * DATE              AUTHOR             NOTE
 * -----------------------------------------------------------
 * 2023-06-01        시스템 관리자       최초 생성
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RoleVO {

    private String roleId;

    private String roleNm;

    private String roleDc;

    private Integer sortOrdr;

    private String useYn;

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

    private String rgtr;

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

    private String mdfr;

    // _attributes 필드 추가, tui grid 에서 사용
    private Map<String, Object> _attributes;

}
