SmartCarKeyResponse.java 1.21 KB
package com.glsx.smart.pojo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

@Data
public class SmartCarKeyResponse implements Serializable {
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 智能车钥匙设备号
     */
    private String sn;

    /**
     * 平台生成的唯一CREP信息(密文)
     */
    private String crepCode;

    /**
     * 注册成功后生成的密钥(密文)
     */
    private String secretKey;

    /**
     * 手机蓝牙的MAC地址
     */
    private String mobileBlueMac;

    /**
     * 智能车钥匙MAC地址
     */
    private String smartLockMac;

    /**
     * 车牌号
     */
    private String carNumber;

    /**
     * 昵称
     */
    private String keyName;

    /**
     * 自动感应状态 0:关  1:开
     */
    private Integer autoSenseStatus;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;
}