/* * 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.vo; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.util.Date; import java.util.List; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; /** * 设备信息 视图实体类 * * @author lw * @since 2026-01-14 */ @Data public class GdManageDeviceVO 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; /** * custom name of the device */ @ApiModelProperty(value = "设备名称") private String nickname; /** * 设备状态:{0:"在线",1:"离线"} */ @ApiModelProperty(value = "设备状态:{0:在线,1:离线}") private Long modeCode; /** * 设备负载(红外,喇叭,闪光灯) */ @ApiModelProperty(value = "设备负载(红外,喇叭,闪光灯)") private String devicePayload; /** * 当前经度 */ @ApiModelProperty(value = "当前经度") private Double longitude; /** * 当前纬度 */ @ApiModelProperty(value = "当前纬度") private Double latitude; @ApiModelProperty(value = "设备ids") private List deviceIds; @ApiModelProperty(value = "设备范围") private String geom; @ApiModelProperty(value = "5公里范围面数据") private String fiveKmArea; @ApiModelProperty(value = "设备位置") private String location; @ApiModelProperty(value = "设备部门") private String deviceDeptName; @ApiModelProperty(value = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; /** * 设备类型(0机场,1无人机) */ @ApiModelProperty(value = "设备类型(0机场,1无人机)") private Integer deviceType; @ApiModelProperty(value = "固件版本") private String firmwareVersion; @ApiModelProperty(value = "设备高度") private Double height; /** * 设备维护状态{0:无需保养,1:待保养,2:正在保养} */ @ApiModelProperty(value = "设备维护状态{0:无需保养,1:待保养,2:正在保养}") private Integer maintenanceState; }