package cn.axzo.workflow.common.model.request.form.definition;

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.util.List;

import static cn.axzo.workflow.common.constant.BpmnConstants.NO_TENANT_ID;

/**
 * 表单定义的更新入参模型
 *
 * @author wangli
 * @since 2023/7/25 14:21
 */
@ApiModel("表单定义的更新入参模型")
@Data
public class FormDefinitionCreateDTO {

    @ApiModelProperty(value = "表单名称")
    @NotBlank(message = "表单名称不能为空")
    public String name;

    @ApiModelProperty(value = "版本号")
    public Integer version;

    @ApiModelProperty(value = "表单标识")
    @NotBlank(message = "表单标识不能为空")
    private String key;

    @ApiModelProperty(value = "表单分类")
    private String category;

   private FormDefinitionDTO formDefinition;

    @ApiModelProperty(value = "描述")
    private String description;

    private String tenantId = NO_TENANT_ID;

}
