package com.erp.print.dto.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;

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

    private Long id;

    private String documentType;

    private Long documentId;

    private String documentNo;

    @NotNull(message = "模板ID不能为空")
    private Long templateId;

    private Long printerId;

    @Builder.Default
    private Integer copies = 1;

    @Builder.Default
    private Integer priority = 2;

    /** 打印参数(Map转JSON) */
    private Map<String, Object> printParams;

    private Long userId;

    private String userName;

    private Long tenantId;
}
