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

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 java.util.List;

/**
 * 流程模型搜索入参模型
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("流程模型搜索入参模型")
@Data
public class BpmnModelSearchDTO extends BpmPageParam {

    /**
     * 标识
     */
    @ApiModelProperty(value = "流程模型标识", example = "process1641042089407", notes = "精准匹配")
    private String key;

    /**
     * 名称
     */
    @ApiModelProperty(value = "流程模型名字", example = "流程模型名称", notes = "模糊匹配")
    private String name;

    /**
     * 流程分类
     */
    @ApiModelProperty(value = "流程模型分类集合", example = "1")
    private List<String> categories;

    /**
     * 模型状态
     */
    @ApiModelProperty(value = "流程模型状态", example = "0:下架, 1:下架", notes = "这里有点业务穿透,模型实际上本身没有状态")
    private Integer status;

    /**
     * 工作台ID集合
     */
    @ApiModelProperty(value = "租户 ID 集合", example = "1")
    private List<String> tenantIds;

    /**
     * 业务需求的参数,是否代运营
     */
    @ApiModelProperty(value = "是否为代运营")
    private Boolean agent;

}
