/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.sxkj.gd.workorder.dto; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; /** * 设备信息 数据传输对象实体类 * * @author lw * @since 2026-01-14 */ @Data public class GdManageDeviceDTO implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty("主键id") @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 设备编码 */ @ApiModelProperty(value = "设备编码") private String deviceSn; /** * 设备型号 */ @ApiModelProperty(value = "设备型号") private String deviceName; /** * 设备昵称 */ @ApiModelProperty(value = "设备昵称") private String nickname; /** * 设备类型(0机场,1无人机) */ @ApiModelProperty(value = "设备类型(0机场,1无人机)") private Integer deviceType; /** * 设备负载(红外,喇叭,闪光灯) */ @ApiModelProperty(value = "设备负载(红外,喇叭,闪光灯)") private String devicePayload; /** /** * 当前经度 */ @ApiModelProperty(value = "当前经度") private Double longitude; /** * 当前纬度 */ @ApiModelProperty(value = "当前纬度") private Double latitude; /** * 固件版本 */ @ApiModelProperty(value = "固件版本") private String firmwareVersion; /** * 子设备(一般用途是机场下面的无人机) */ @ApiModelProperty(value = "子设备(一般用途是机场下面的无人机)") private String childSn; /** * 设备状态:{0:"在线",1:"离线"} */ @ApiModelProperty(value = "设备状态:{0:\"在线\",1:\"离线\"}") private Long modeCode; /** * 保险过期时间 */ @ApiModelProperty(value = "保险过期时间yyyy-MM-dd HH:mm:ss") @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" ) @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" ) private Date insureExpiredTime; /** * 剩余流量(单位:GB) */ @ApiModelProperty(value = "剩余流量(单位:GB)") private BigDecimal trafficRemaining; /** * 流量到期时间 */ @ApiModelProperty(value = "流量到期时间yyyy-MM-dd HH:mm:ss") @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" ) @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" ) private Date trafficExpireTime; /** * 设备维护状态{0:无需保养,1:待保养,2:正在保养} */ @ApiModelProperty(value = "设备维护状态{0:无需保养,1:待保养,2:正在保养}") private Integer maintenanceState; }