package com.codvision.workflow.entity.dto;

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

import java.io.Serializable;
import java.util.Map;

/**
 * 任务回退次数限制对象
 * @author hxl
 */
@Data
@Builder
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class WorkFlowTaskReturnLimitDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务key")
    private String taskDefinitionKey;

    @ApiModelProperty("回退限制次数")
    private Integer limitCount;

    @ApiModelProperty("回退限制类型，0-用户 1-组织")
    private Integer limitType;

    @ApiModelProperty("用户回退次数信息")
    private Map<Integer, Integer> userMap;

    @ApiModelProperty("组织回退次数信息")
    private Map<Integer, Integer> orgMap;

}
