Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / CameraGroupInfo.java
package com.newfiber.api.pc.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述:自定义视频分组-分组表
 * @作者: luzhan
 * @日期: 2022-04-06
 */
@ApiModel(value = "自定义视频分组-分组表")
@TableName("camera_group_info")
@Data
public class CameraGroupInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("name")
    @ApiModelProperty(value = "姓名")
    private String name;
    @TableField("parent_id")
    @ApiModelProperty(value = "父级id 1级为0")
    private Long parentId;
    @TableField("duty_user")
    @ApiModelProperty(value = "负责人名称")
    private String dutyUser;
    @TableField("phone")
    @ApiModelProperty(value = "手机号")
    private String phone;
    @TableField("position")
    @ApiModelProperty(value = "职位")
    private String position;
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @TableField("update_time")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * 子列表
     */
    @TableField(exist = false)
    private List<CameraGroupInfo> childern;

    /**
     * 视频信息
     */
    @TableField(exist = false)
    private List<CameraInfo> cameraInfos;

    /**
     * 上级分组名称
     */
    @TableField(exist = false)
    private String parentName;

    /**
     * 摄像头数量
     */
    @TableField(exist = false)
    private Integer indexSize = 0;

    /**
     * 摄像头数组
     */
    @TableField(exist = false)
    private List<String> indeCodes;

    /**
     * 在线数量
     */
    @TableField(exist = false)
    private Integer onLine = 0;

    /**
     * 查询视频的状态
     */
    @TableField(exist = false)
    private Integer status;

    @TableField(exist = false)
    private String cameraUser;

}