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

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

import java.util.List;

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

    @ChineseDescription("展示列的配置")
    private List<ViewColumnField> viewColumnFieldList;

    @ChineseDescription("展示的搜索条件")
    private List<ViewSearchField> viewSearchFieldList;

    @ChineseDescription("按钮的配置")
    private List<ViewButton> viewButtonList;

    @ChineseDescription("数据渲染类型：1-自定义sql，2-基于接口，3-基于java代码，4-基于表单配置")
    private Integer dataRenderType;

    @ChineseDescription("sql的模板")
    private String sqlTemplate;

    @ChineseDescription("基于接口方式的spring bean的类全称")
    private String springBeanClass;

    @ChineseDescription("基于JAVA代码方式实现的java代码编写")
    private String javaCode;

}
