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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 表单模型创建入参模型
 *
 * @author wangli
 * @since 2023/7/20 09:52
 */
@ApiModel("表单模型创建入参模型")
@Data
public class FormModelCreateDTO {

    @ApiModelProperty(value = "表单标识", example = "form_key", hidden = true)
    @Length(max = 255, message = "表单标识最长只支持255个字符")
    @NotBlank(message = "流程表单 key 不能为空")
    private String key;

    @ApiModelProperty(value = "表单名称", example = "第一个表单")
    @NotBlank(message = "表单名称不能为空")
    @Length(max = 255, message = "表单名称最长只支持255个字符")
    private String name;

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

    @ApiModelProperty(value = "租户 ID", example = "1")
    @NotBlank(message = "租户 ID 不能为空")
    private String tenantId;

}
