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

import cn.axzo.workflow.common.model.request.form.definition.FormFieldDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * 新版本的表单定义模型 JSON 结构
 *
 * @author wangli
 * @since 2024-11-06 17:24
 */
@ApiModel("新版本的表单定义模型 JSON 结构")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class FormJsonModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表单名称")
    private String name;

    @ApiModelProperty(value = "表单模型")
    @Valid
    private List<FormFieldDTO> formFields;
}
