starwork_flutter/lib/ble/constant/lock_ble_constant.dart

20 lines
597 B
Dart

class LockBleConstant {
/// KeyType: 钥匙类型
/// 0: 普通钥匙
/// 1: 临时钥匙(到期自动删除)
/// 2: 蓝牙遥控器
/// 255: 测试钥匙(添加正式钥匙后自动失效)
static const int keyTypeNormal = 0;
static const int keyTypeTemporary = 1;
static const int keyTypeBluetoothRemote = 2;
static const int keyTypeTest = 255;
/// Role: 用户角色
/// 0: 普通用户
/// 1: 管理员
/// 255 (0xFF): 超级管理员
static const int roleNormalUser = 0;
static const int roleAdmin = 1;
static const int roleSuperAdmin = 255; // 0xFF
}