package com.ai.da.python.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class DesignPythonItemPrint {
    /**
     * print 绝对路径
     */
    @ApiModelProperty("图片绝对路径")
    private String path;

    private List<String> print_path_list;

    @ApiModelProperty("上传时候对应的类型,一级类型  Printboard ")
    private String level1Type;

    /**
     * print_scale
     */
    @ApiModelProperty("print_scale")
    private Float scale;

    /**
     * 是否打点
     */
    @ApiModelProperty("是否打点 是传true 否则false")
    private Boolean IfSingle;


    @ApiModelProperty("print的位置 传 [[0.2, 0.2]]")
    private List<List<Double>> location;

    @ApiModelProperty("print的缩放比例 传 [0.2, 0.2]")
    private List<Double> print_scale_list;

    @ApiModelProperty("print的旋转角度 传 [0.2, 0.2]")
    private List<Double> print_angle_list;

    @JSONField(name = "IfSingle")
    public Boolean getIfSingle() {
        return IfSingle;
    }

    public DesignPythonItemPrint(String singlePath, String level1Type, Float scale, Boolean ifSingle) {
        this.path = singlePath;
        this.level1Type = level1Type;
        this.scale = scale;
        IfSingle = ifSingle;
    }

    public DesignPythonItemPrint() {
    }

    public DesignPythonItemPrint(String path) {
        this.path = path;
    }

    public DesignPythonItemPrint(List<String> print_path_list, Boolean ifSingle) {
        this.print_path_list = print_path_list;
        IfSingle = ifSingle;
    }
}
