package com.erp.print.dto.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PrintTaskResponse {

    private Long id;
    private String taskNo;
    private String documentType;
    private Long documentId;
    private String documentNo;
    private Long templateId;
    private String templateName;
    private Long printerId;
    private String printerName;
    private Integer copies;
    private String taskStatus;
    private Integer priority;
    private String errorMessage;
    private Integer retryCount;
    private Long userId;
    private String userName;

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

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime printedAt;
}
