package com.codvision.workflow.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author hxl
 */
@Data
@ApiModel
public class WorkFlowDynamicAllocationDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "任务ID不能为空")
    @ApiModelProperty("任务ID")
    private String taskId;

    @NotNull(message = "请指定分配类型")
    @ApiModelProperty("分配类型：0-人员 1-组织")
    private Integer allocationType;

    @ApiModelProperty("用户uid集合")
    private List<Integer> userIdList;

    @ApiModelProperty("组织OID")
    private Integer oid;
}
