package com.dcsoft.system.ladder.domain;

import java.util.Date;
import java.util.List;

import com.dcsoft.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dcsoft.common.core.annotation.Excel;
import lombok.Data;

/**
 * 梯控规则对象 t_ladder_rule
 *
 * @author dcsoft
 * @date 2023-12-26
 */
@Data
public class TLadderRule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 规则Id
     */
    private String id;

    /**
     * 规则名称
     */
    @Excel(name = "规则名称")
    private String name;

    /**
     * 有效期开始
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效期开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 有效期结束
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效期结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 准入时间起
     */
    @Excel(name = "准入时间起")
    private String admittanceStart;

    /**
     * 准入时间止
     */
    @Excel(name = "准入时间止")
    private String admittanceEnd;

    /**
     * 设备空间
     */
    @Excel(name = "设备空间")
    private String spaceId;

    /**
     * 设备位置
     */
    @Excel(name = "设备位置")
    private String pointId;

    /**
     * 1:本地库 2:云端库 默认本地
     */
    @Excel(name = "1:本地库 2:云端库 默认本地")
    private String type;

    /**
     * facePermission 刷脸权限 idCardPermission 刷卡权限 faceAndCardPermission 人卡合一权限 idCardFacePermission 人证比对权限
     * passwordPermission 密码权限
     */
    private String permission;

    /**
     * 楼层id
     */
    private String storeyId;

    private List<String> pointIds;
}
