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 com.qqchen.deploy.backend.workflow.enums.WorkflowDefinitionStatusEnums;
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;
    
    /**
     * 分类ID
     */
    @QueryField(field = "categoryId", type = QueryType.EQUAL)
    private Long categoryId;
    
    /**
     * 流程版本
     */
    @QueryField(field = "flowVersion", type = QueryType.EQUAL)
    private Integer flowVersion;
    
    /**
     * 流程状态
     */
    @QueryField(field = "status", type = QueryType.EQUAL)
    private WorkflowDefinitionStatusEnums status;
}
