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       : CodeGroupVO
 * author         : 개발자
 * date           : 2025-05-09
 * description    : 공통 코드 그룹 정보를 담는 VO 클래스
 * ===========================================================
 * DATE              AUTHOR             NOTE
 * -----------------------------------------------------------
 * 2025-05-09        개발자       최초 생성
 * 2025-05-13        개발자       CodeMasterVO에서 CodeGroupVO로 변경
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CodeGroupVO {

    private String cdGroupId;

    private String cdGroupNm;

    private String cdGroupDc;

    private String useYn;

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