package io.gisbi.api.visualization.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.gisbi.api.visualization.vo.VisualizationLinkageFieldVO;
import io.gisbi.api.visualization.vo.VisualizationLinkageVO;
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : WangJiaHao
 * @date : 2023/7/13
 */
@Data
public class VisualizationLinkageDTO extends VisualizationLinkageVO {

    /**
     * 目标图表名称
     */
    private String targetViewName;

    /**
     * 目标图表类型
     */
    private String targetViewType;
    /**
     * 联动字段
     */
    private List<VisualizationLinkageFieldVO> linkageFields = new ArrayList<>();

    /**
     * 目标图表字段
     */
    private List<DatasetTableFieldDTO> targetViewFields = new ArrayList<>();
    /**
     * 表ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tableId;

}
