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

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

import java.time.LocalDateTime;

/**
 * packageName    : go.kr.project.system.cd.model
 * fileName       : CodeDetailVO
 * author         : 개발자
 * date           : 2025-05-09
 * description    : 공통 코드 상세 정보를 담는 VO 클래스
 * ===========================================================
 * DATE              AUTHOR             NOTE
 * -----------------------------------------------------------
 * 2025-05-09        개발자       최초 생성
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CodeDetailVO {

    private String cdGroupId;

    private String cdGroupNm;

    private String cdId;

    private String cdNm;

    private String cdDc;

    private Integer sortOrdr;

    private String useYn;

    private String attribute1;

    private String attribute2;

    private String attribute3;

    private String attribute4;

    private String attribute5;

    @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;

    @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 mdfcnDttm;

    private String mdfr;
}
