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 DoorAccessControlConfigMappingDepartmentPersonalRO {
    @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 departmentId;
    private String departmentName;
    private boolean recursive;

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