package com.xiaopeng.order.config;
|
|
import lombok.Data;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import java.util.List;
|
|
/**
|
* 蓝牙开锁联调配置(临时)
|
* <p>
|
* 通过 Nacos 配置固定的蓝牙 token、macAddress、slaveMacList,用于联调测试。
|
* <p>
|
* 配置格式示例:
|
* <pre>
|
* bluetooth-debug:
|
* enabled: false
|
* token: "your-fixed-token"
|
* mac-address: "AA:BB:CC:DD:EE:FF"
|
* slave-mac-list:
|
* - "AA:BB:CC:DD:EE:01"
|
* - "AA:BB:CC:DD:EE:02"
|
* </pre>
|
*/
|
@Slf4j
|
@Data
|
@ConfigurationProperties(prefix = "bluetooth-debug")
|
public class BluetoothDebugConfig {
|
|
/**
|
* 联调开关,默认 false(关闭)
|
*/
|
private boolean enabled = false;
|
|
/**
|
* 固定的蓝牙 token
|
*/
|
private String token;
|
|
/**
|
* 固定的 MAC 地址
|
*/
|
private String macAddress;
|
|
/**
|
* 固定的从设备 MAC 地址列表
|
*/
|
private List<String> slaveMacList;
|
}
|