package org.jeecg.modules.system.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("nm_gmt_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="设备开门记录表")
public class AppGmtInfo {
    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private String id;
    @Schema(description = "familyId")
    private String familyId;
    @Schema(description = "siteId")
    private String siteId;
    @Schema(description = "认证状态")
    private String authResultMsg;
    @Excel(name = "开门时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开门时间")
    private Date gmtCreate;
    @Schema(description = "认证照片")
    private String picUrl;
    @Schema(description = "认证编码")
    private String secMsgCode;
    @Schema(description = "海康关联ID")
    private String originId;
    @Schema(description = "设备编码")
    private String deviceSerial;
    @Schema(description = "设备号")
    private String deviceSerialNo;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间;创建时间")
    private Date createTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间;更新时间")
    private Date updateTime;

}
