package com.usky.sas.service.vo;

import lombok.Data;

import java.util.List;

/**
 * 电子地图保存请求：包含地图基础信息及设备点位列表
 */
@Data
public class MapSaveWithDevicesRequest {

    /** 地图主键ID，若为空则视为新建 */
    private String id;

    private String name;

    private Integer type;

    private String remark;

    private String parentId;

    private Double width;

    private Double height;

    private Boolean isMask;

    private String backImgId;

    /**
     * 地图下的设备点位列表
     */
    private List<MapDeviceItem> devices;

    @Data
    public static class MapDeviceItem {

        /** 地图设备主键ID，空表示新建 */
        private String id;

        private String deviceId;

        private String imgId;

        private String type;

        private String backgroundColor;

        private Double x;

        private Double y;

        private Double width;

        private Double height;

        private Double angle;

        private String fontColor;

        private String thickness;

        private Integer fontSize;

        private String text;
    }
}

