package com.ltgk.video.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: zhouyaoyao
 * @Date 2025/3/13 09:34
 * Description: 无人机机场天气
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("uav_weather")
@ApiModel(value="UavWeather对象", description="无人机机场天气表")
public class UavWeather extends Model<DsVideo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("机场-风速计")
    private BigDecimal dockWind;

    @ApiModelProperty("机场-雨量计")
    private String dockRainfall;

    @ApiModelProperty("天气预报-天气状况")
    private String weatherInfo;

    @ApiModelProperty("天气预报-温度")
    private BigDecimal weatherTemp;

    @ApiModelProperty("天气预报-预测飞行风速")
    private BigDecimal weatherWind;

    @ApiModelProperty("天气预报-相对湿度")
    private BigDecimal weatherHumidity;

    @ApiModelProperty("天气预报-短时雨量")
    private String weatherRainfall;

    @ApiModelProperty("天气预报-电离层活跃度")
    private String weatherIonize;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;
}
