package cn.iocoder.yudao.module.bpm.controller.admin.definition.vo.copy;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author: jinyd
 * @CreateTime: 2024/9/25  15:57
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 抄送节点信息新增/修改 Request VO")
@Data
public class TaskCopySaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29705")
    private Long id;

    @Schema(description = "节点id", example = "15615")
    private Long taskId;

    @Schema(description = "流程模型的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6522")
    @NotEmpty(message = "流程模型的编号不能为空")
    private String modelId;

    @Schema(description = "流程id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1486")
    @NotEmpty(message = "流程id不能为空")
    private String processInstanceId;

    @Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22631")
    @NotEmpty(message = "流程定义的编号不能为空")
    private String processDefinitionId;

    @Schema(description = "是否当前最新，0-是，1-否", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否当前最新，0-是，1-否不能为空")
    private Integer currentFlag;

}
