package com.multictrl.modules.business.q20.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * Q20航线任务 - 机库信息条目DTO（用于route_execute）
 *
 * @author 938693313@qq.com
 * @since 1.0.0 2026/5/20
 */
@Data
@Schema(description = "机库信息条目")
public class Q20DockInfoItemDTO {

    @Schema(description = "机库序号")
    private int index;

    @Schema(description = "机库类型：takeoff=起飞点，landing=降落点")
    private String type;

    @Schema(description = "机库/客户端设备序列号")
    private String sn;

    @Schema(description = "降落平台识别码")
    private String code;

    @Schema(description = "经度，精确到7位小数")
    private float longitude;

    @Schema(description = "纬度，精确到7位小数")
    private float latitude;

    @Schema(description = "椭球高度(EGM96)(m)")
    private float altitude;

    @Schema(description = "朝向角(deg)")
    private float heading;

    @Schema(description = "是否已设置备降点：0=未设置，1=已设置")
    @JsonProperty("alternate_set")
    private int alternateSet;

    @Schema(description = "备降点信息")
    @JsonProperty("alternate_point")
    private Q20DockAlternatePointDTO alternatePoint;
}
