package com.sandu.ximon.dao.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
/**
|
* 路灯表
|
*
|
* @TableName light
|
*/
|
@TableName(value = "light")
|
@Data
|
@AllArgsConstructor
|
@NoArgsConstructor
|
public class Light implements Serializable {
|
/**
|
*
|
*/
|
@TableId(type = IdType.AUTO)
|
private Long lightId;
|
|
/**
|
* 设备识别码
|
*/
|
private String deviceCode;
|
|
/**
|
* 备注信息
|
*/
|
private String remark;
|
|
/**
|
* 灯头数量,默认双灯头。1:单灯头,2:双灯头
|
*/
|
private int lightCount;
|
|
/**
|
* 灯1亮度百分比,0-100
|
*/
|
private Integer lightPercent;
|
|
/**
|
* 灯2亮度百分比,0-100
|
*/
|
private Integer light2Percent;
|
|
/**
|
* 功率
|
*/
|
private Integer power1;
|
|
private Integer power2;
|
|
/**
|
* 是否存在灯头 1是 0否
|
*/
|
private Integer light1;
|
|
private Integer light2;
|
|
/**
|
* 创建时间
|
*/
|
private LocalDateTime createTime;
|
|
/**
|
*
|
*/
|
private LocalDateTime updateTime;
|
|
/**
|
* 在线状态 0:离线 1:在线
|
*/
|
@TableField(exist = false)
|
private Integer onlineStatus;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
}
|