package com.ga.core.vo.settle;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 정산 마감 API 응답 VO
 * 조인 결과(담당자명) 포함, 화면 표시용.
 */
@Data
public class PeriodCloseResp {
    private Long closeId;
    private String closeMonth;        // YYYYMM
    private LocalDateTime closedAt;
    private Long closedBy;
    private String closedByName;      // users.user_name 조인
    private LocalDateTime reopenAt;
    private Long reopenBy;
    private String reopenByName;      // users.user_name 조인
    private String reopenReason;
    private String note;
    private String closeStatus;       // CLOSED / REOPENED (reopen_at IS NULL → CLOSED)
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
