package cn.stylefeng.team.view.api.pojo;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ViewColumnField {

    @ChineseDescription("字段id，返回给前端用")
    private String fieldId;

    @ChineseDescription("字段名称，例如：userName")
    private String fieldName;

    @ChineseDescription("列展示名称，例如：用户名")
    private String showName;

    @ChineseDescription("转化器类型：1-通用转化器，2-表单元素转化器")
    private Integer parserType;

    @ChineseDescription("通用转化器的名称，选择通用转化器的时候这个值必须传递")
    private String parserName;

    @ChineseDescription("表单定义id")
    private Long formDefinitionId;

    @ChineseDescription("表单元素的字段编码")
    private String fieldCode;

    @ChineseDescription("是否在列表展示")
    private Boolean columnShowFlag;

    @ChineseDescription("是否以图片展示列")
    private Boolean picShowFlag = false;

}
