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

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

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

/**
 * 提交审批请求DTO
 * @author lroyia
 * @since 2026/3/9
 **/
@Data
@ApiModel("提交审批请求DTO")
public class ApprovalDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "待办ID", required = true)
    @NotBlank(message = "待办ID不能为空")
    private String tasklistid;

    @ApiModelProperty(value = "下一节点ID", required = true)
    @NotBlank(message = "下一节点ID不能为空")
    private String nextNodeID;

    @ApiModelProperty(value = "下一处理人ID", required = true)
    @NotBlank(message = "下一处理人ID不能为空")
    private String nextPerformerids;

    @ApiModelProperty(value = "下一处理人姓名", required = true)
    @NotBlank(message = "下一处理人姓名不能为空")
    private String nextPerformerNames;

    @ApiModelProperty(value = "审批意见")
    @Valid
    private TSOpinion opinionModel;
}