package com.sinata.appointment.config;
|
|
import lombok.Data;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
@Data
|
@ConfigurationProperties(prefix = "integration.hikvision.qrcode")
|
public class HikvisionQrcodeProperties {
|
|
/**
|
* 是否在访客码接口返回前加密二维码内容。关闭时返回库内明文,便于本地联调排查。
|
*/
|
private boolean encryptEnabled = false;
|
|
/**
|
* AES 密钥,启用加密时必须为 16 位字符。
|
*/
|
private String aesKey = "";
|
|
/**
|
* AES CBC 偏移量,启用加密时必须为 16 位字符。
|
*/
|
private String aesIv = "";
|
|
/**
|
* 二维码有效分钟数;为空或小于 1 时继续沿用现有预约最长天数换算逻辑。
|
*/
|
private Integer validMinutes;
|
}
|