package com.izouma.wenlvju.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "萤石云token获取")
public class EzvizToken {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @ExcelIgnore
    private Long id;

    private String token;

    @ApiModelProperty(value = "过期时间")
    private LocalDateTime expiredAt;
}
