package com.yuchen.saas.integration.hik.isc.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "CameraDevicePageVO", description = "CameraDevicePageVO")
public class CameraDevicePageVO extends CameraDeviceVO{
    /**
     * ip/sn
     */
    @ApiModelProperty(name = "ip", value = "ip/sn")
    private String ip;

    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;


    /**
     * 场站id
     */
    @ApiModelProperty(name = "siteId", value = "场站id")
    private Long siteId;
    /**
     * 场站名称
     */
//    @ApiModelProperty(name = "siteName", value = "场站名称")
//    private String siteName;
    /**
     * 客户id
     */
    @ApiModelProperty(name = "customerId", value = "客户id")
    private Long customerId;
    /**
     * 客户名称
     */
    @ApiModelProperty(name = "customerName", value = "客户名称")
    private String customerName;
    /**
     * 锐视佳摄像头id/分组i
     */
    @ApiModelProperty(name = "cid", value = "锐视佳摄像头id")
    private String cid;

    @ApiModelProperty(name = "parentId", value = "父级id/分组id")
    private Long parentId;

    /**
     * 设备名称/分组名称
     */
    @ApiModelProperty(name = "deviceName", value = "设备名称")
    private String deviceName;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "更新人")
    private Long updateUser;
    @ApiModelProperty(name = "updateUserName", value = "更新人明细")
    private String updateUserName;



}
