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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 表单字段扩展对象
 * <p>
 * 注意: FormField 类型中其实包含了一部分本类型的字段,但为了保持统一,将弃用外面的属性,仅以这里为准
 *
 * @author wangli
 * @since 2024-11-12 18:33
 */
@Data
@ApiModel("表单字段扩展对象")
public class FormFieldExtDTO {
    /**
     * 字段可编辑
     */
    @ApiModelProperty(value = "可编辑")
    private Boolean editable;

    /**
     * 字段必填
     */
    @ApiModelProperty(value = "必填")
    private Boolean required;

    /**
     * 字段只读
     */
    @ApiModelProperty(value = "只读")
    private Boolean readonly;

    /**
     * 字段隐藏
     */
    @ApiModelProperty(value = "隐藏")
    private Boolean hidden;

    /**
     * 字段默认值
     */
    @ApiModelProperty(value = "默认值")
    private String defaultValue;
}
