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

import cn.axzo.workflow.common.model.request.BpmPageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * 流程定义分页查询入参模型
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("流程定义分页查询入参模型")
@Data
public class BpmnProcessDefinitionPageDTO extends BpmPageParam {

    /**
     * 业务分类 ID
     */
    @ApiModelProperty(value = "流程标识，传了精准匹配")
    @NotBlank(message = "流程标识不能为空")
    private String key;

    /**
     * 如果是配置台(公共模型)则不传或传空字符串
     */
    @ApiModelProperty(value = "租户Id", example = "1")
    private String tenantId = "";
}
