package cn.axzo.workflow.common.model.request.bpmn.print;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 获取指定打印模板可打印的字段集合的查询入参模型
 *
 * @author wangli
 * @since 2025-01-16 17:42
 */
@ApiModel("获取指定打印模板可打印的字段集合的查询入参模型")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PrintFieldQueryDTO {

    /**
     * 模板定义 KEY
     */
    @ApiModelProperty(value = "流程模板 KEY")
    @NotBlank(message = "流程模板 KEY 不能为空")
    private String processDefinitionKey;

    /**
     * 租户 ID
     */
    @ApiModelProperty(value = "租户 ID")
    private String tenantId;

    /**
     * 是否抛出内部异常
     */
    @ApiModelProperty(value = "是否报错内部异常")
    @Builder.Default
    private Boolean throwException = true;
}
