package com.qqchen.deploy.backend.workflow.dto.query;

import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 工作流定义查询对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WorkflowDefinitionQuery extends BaseQuery {
    
    /**
     * 流程名称
     */
    @QueryField(field = "name", type = QueryType.LIKE)
    private String name;
    
    /**
     * 流程标识
     */
    @QueryField(field = "key", type = QueryType.EQUAL)
    private String key;
    
    /**
     * 流程版本
     */
    @QueryField(field = "version", type = QueryType.EQUAL)
    private Integer version;
}
