package com.chinaweal.aiccs.aiccs.revoke.entity.dto;

import com.chinaweal.aiccs.aiccs.auditing.entity.TSOpinion;
import com.chinaweal.aiccs.aiccs.revoke.entity.TsCase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Lee
 * @since 2022-02-16 10:12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "批量吊销流程模型")
public class RevokeProcessDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务主键
     */
    @ApiModelProperty(value = "待办主键")
    @NotBlank(message = "待办主键不能为空！")
    private String tasklistid;

    /**
     * 业务主键
     */
    @ApiModelProperty(value = "业务主键")
    @NotBlank(message = "业务主键不能为空！")
    private String bizseq;

    /**
     * 下一流程节点
     */
    @ApiModelProperty(value = "下一流程节点")
    @NotBlank(message = "下一流程节点类型不能为空！")
    private String nextNodeID;

    /**
     * 意见
     */
    @ApiModelProperty(value = "意见")
    @Valid
    private TSOpinion opinion;

    /**
     * 下一步处理人id数组
     */
    @ApiModelProperty(value = "下一步处理人ids")
    private String[] nextPerformerIds;

    /**
     * 下一步处理人姓名数组
     */
    @ApiModelProperty(value = "下一步处理人姓名数组")
    private String[] nextPerformerNames;

    /**
     * 案件信息
     */
    @ApiModelProperty(value = "案件信息")
    @Valid
    private TsCase caseModel;

}
