package com.yuchen.saas.park.service.mapper.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yuchen.saas.park.api.config.LongToStringSerializer;
import lombok.Data;

import javax.annotation.Nullable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.time.LocalDateTime;

@Data
public class DoorAccessControlCardRO {
    @JsonSerialize(using = LongToStringSerializer.class)
    @Positive
    private long id;

    @JsonSerialize(using = LongToStringSerializer.class)
    private long userId;
    private String username;
    private Integer userGender;

    @NotBlank
    private String no;

    @NotBlank
    private String password;

    private boolean lossReport;
    @Nullable
    private LocalDateTime lossReportTime;
    @Nullable
    private LocalDateTime cancelLossReportTime;

    // 生物特征
    private String userFacialId;
    private String userFingerprintId;
}
