/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.workflow.entity.dto;

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

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

/**
 * @author hxl
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WorkFlowFormLinkDTO {

    @NotBlank(message = "流程定义ID不能为空")
    @ApiModelProperty("流程定义ID")
    private String definitionId;

    @NotBlank(message = "流程定义Key不能为空")
    @ApiModelProperty("流程定义Key")
    private String definitionKey;

    @NotNull(message = "表单ID不能为空")
    @ApiModelProperty("表单ID")
    private Integer formId;

    @ApiModelProperty("系统菜单ID")
    private List<Integer> menuIds;
}
