package com.multictrl.modules.business.dto;

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

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 媒体资源
 *
 * @author Sdy
 * @since 1.0.0 2026-04-29
 */
@Data
@Schema(description = "媒体资源参数")
public class MediaFileDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "媒体id")
    private Long id;

    @Schema(description = "架次编号")
    private String taskId;

    @Schema(description = "设备编号")
    private String dockSn;

    @Schema(description = "飞行型号")
    private String droneModelKey;

    @Schema(description = "云台型号")
    private String payloadModelKey;

    @Schema(description = "是否原文件")
    private Boolean original;

    @Schema(description = "文件名称")
    private String name;

    @Schema(description = "文件路径")
    private String objectKey;

    @Schema(description = "文件的业务路径")
    private String path;

    @Schema(description = "拍摄经度")
    private String longitude;

    @Schema(description = "拍摄纬度")
    private String latitude;

    @Schema(description = "相对高度")
    private String relativeAltitude;

    @Schema(description = "海拔高度")
    private String absoluteAltitude;

    @Schema(description = "云台偏航角")
    private String gimbalYawDegree;

    @Schema(description = "文件类型")
    private String subFileType;

    @Schema(description = "拍摄时间")
    private Date createdTime;

    @Schema(description = "事件收到时间")
    private Date createDate;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @Schema(description = "媒体路径")
    private String url;

    @Schema(description = "机库名称")
    private String dockName;

    @Schema(description = "媒体数量")
    private Integer mediaNum;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @Schema(description = "视频封面")
    private String cover;
}
