package io.gisbi.api.visualization.request;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.gisbi.api.visualization.vo.DataVisualizationVO;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class DataVisualizationBaseRequest extends DataVisualizationVO {

    private String opt;

    private String resourceName;

    private Boolean moveFromUpdate = false;

    private String optType;

    private String newFrom;

    private String dynamicData;

    private String templateId;

    private String staticResource;

    private String templateUrl;

    private String busiFlag;

    // 查询来源 main=主工程 report=定时报告
    private String source;

    // 定时报告id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long reportId;

    // 定时报告任务id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    private Boolean showWatermark;

    @JsonSerialize(using = ToStringSerializer.class)
    // 数据集分组PID
    private Long datasetFolderPid;

    // 数据集分组名称
    private String datasetFolderName;

    //新赋值的content_id
    private String newContentId;

    // 是否强制校验新旧contentId
    private Boolean checkHistory = false;


    public DataVisualizationBaseRequest(Long id,String busiFlag) {
        this.busiFlag = busiFlag;
        super.setId(id);
    }
}
