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

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

import javax.annotation.Nullable;
import java.time.LocalDateTime;

@Data
public class DoorAccessControlConfigMappingPersonalPersonalRO {
    @JsonSerialize(using = LongToStringSerializer.class)
    private long id;
    private LocalDateTime createTime;
    @JsonSerialize(using = LongToStringSerializer.class)
    private long timeConfigId;
    private String timeConfigName;
    @Nullable
    private LocalDateTime effectiveStartTime;
    @Nullable
    private LocalDateTime effectiveEndTime;

    /**
     * 用户
     */
    @JsonSerialize(using = LongToStringSerializer.class)
    private long userId;
    private String username;
    private String userDepartmentName;

    /**
     * 门禁
     */
    @JsonSerialize(using = LongToStringSerializer.class)
    private long doorAccessControlId;
    private String doorAccessControlAddress;
    private String doorAccessControlName;

    //卡片
    private Boolean card;
    //指纹
    private Boolean fingerprint;
    //人脸
    private Boolean facial;
}
