package com.ltgk.video.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.annotation.Excel;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 无人机 (DsUav)实体类
 *
 * @author Qi ChengBin
 * @date 2025-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ds_uav")
@ApiModel(value = "无人机对象", description = "DsUav表")
public class DsUav extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "序列号")
    @TableField(value = "serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "无人机显示名称")
    @TableField(value = "uav_name", condition = SqlCondition.LIKE)
    @Excel(name = "无人机显示名称", sort = 1)
    private String uavName;

    @ApiModelProperty(value = "无人机显示code")
    @TableField(value = "uav_code", condition = SqlCondition.LIKE)
    @Excel(name = "无人机显示code", sort = 2)
    private String uavCode;

    @ApiModelProperty(value = "监管所属单位")
    @TableField(value = "belong_unit", condition = SqlCondition.LIKE)
    private String belongUnit;

    @ApiModelProperty(value = "所属渔港ID")
    @TableField(value = "port_id")
    private String portId;

    @ApiModelProperty(value = "所属渔港名称")
    @TableField(value = "port_name", condition = SqlCondition.LIKE)
    @Excel(name = "所属渔港名称", sort = 3)
    private String portName;

    @ApiModelProperty(value = "生产厂家")
    @TableField(value = "manufacturer", condition = SqlCondition.LIKE)
    @Excel(name = "生产厂家", sort = 4)
    private String manufacturer;

    @ApiModelProperty(value = "安装位置")
    @TableField(value = "addr", condition = SqlCondition.LIKE)
    private String addr;

    @ApiModelProperty(value = "经度")
    @TableField(value = "longitude")
    @Excel(name = "经度", sort = 5)
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    @TableField(value = "latitude")
    @Excel(name = "纬度", sort = 6)
    private Double latitude;

    @ApiModelProperty(value = "安装时间")
    @TableField(value = "deploy_date")
    private Date deployDate;

    @ApiModelProperty(value = "最近维护时间")
    @TableField(value = "last_maintenance_date")
    private Date lastMaintenanceDate;

    @ApiModelProperty(value = "运行状态")
    @TableField(value = "run_status")
    @Excel(name = "运行状态", sort = 7)
    private String runStatus;

    @ApiModelProperty(value = "baseurl")
    @TableField(value = "uav_api_base_url")
    private String uavApiBaseUrl;

    @ApiModelProperty(value = "converter-url")
    @TableField(value = "uav_api_converter_url")
    private String uavApiConverterUrl;

    @ApiModelProperty(value = "send-video-url")
    @TableField(value = "uav_api_send_video_url")
    private String uavApiSendVideoUrl;

    @ApiModelProperty(value = "org-id")
    @TableField(value = "uav_org_id")
    private String uavOrgId;

    @ApiModelProperty(value = "org-name")
    @TableField(value = "uav_org_name")
    private String uavOrgName;

    @ApiModelProperty(value = "org-secret")
    @TableField(value = "uav_org_secret")
    private String uavOrgSecret;

    @ApiModelProperty(value = "机舱型号")
    @TableField(value = "uav_dock_model")
    private String uavDockModel;

    @ApiModelProperty(value = "机舱名称")
    @TableField(value = "uav_dock_name")
    private String uavDockName;

    @ApiModelProperty(value = "机舱main-sn")
    @TableField(value = "uav_dock_main_sn")
    private String uavDockMainSn;

    @ApiModelProperty(value = "机舱sign-sn")
    @TableField(value = "uav_dock_sign_sn")
    private String uavDockSignSn;

    @ApiModelProperty(value = "机舱code")
    @TableField(value = "uav_dock_code")
    private String uavDockCode;

    @ApiModelProperty(value = "无人机型号")
    @TableField(value = "uav_equipment_model")
    private String uavEquipmentModel;

    @ApiModelProperty(value = "无人机名称")
    @TableField(value = "uav_equipment_name")
    private String uavEquipmentName;

    @ApiModelProperty(value = "无人机sn")
    @TableField(value = "uav_equipment_sn")
    private String uavEquipmentSn;

    @ApiModelProperty(value = "无人机code")
    @TableField(value = "uav_equipment_code")
    private String uavEquipmentCode;

    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

