package com.ruoyi.web.integration.dahua; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 大华门禁接入配置。 */ @Data @Component @ConfigurationProperties(prefix = "dahua.access") public class DahuaAccessProperties { /** 是否启用访客门禁权限下发。 */ private boolean enabled = false; /** NetSDK 原生库所在目录,也可以直接指向 dhnetsdk 主库文件。 */ private String nativeLibraryPath; /** 建立设备连接的超时时间,单位毫秒。 */ private int connectTimeout = 5000; /** 单次 NetSDK 业务调用超时时间,单位毫秒。 */ private int timeout = 5000; /** 单台设备失败时是否阻断访客登记或签离。 */ private boolean failOnError = false; }