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 DoorAccessControlConfigMappingPersonalGroupRO {
    @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 doorAccessControlGroupId;
    private String doorAccessControlGroupName;
}
