108 lines
5.5 KiB
Dart
108 lines
5.5 KiB
Dart
class StarCloudApiPath {
|
|
static const String createUser = '/createUser'; // 创建账号
|
|
static const String getOauthToken = '/oauth2/token'; // 获取访问令牌
|
|
static const String refreshOauthToken = '/oauth2/token'; // 刷新访问令牌
|
|
static const String lockList = '/v1/lock/list'; // 获取名下锁列表
|
|
static const String lockDetail = '/v1/lock/detail'; // 获取锁详情
|
|
static const String lockInitialize = '/v1/lock/initialize';
|
|
static const String getLockNetToken = '/v1/lock/getLockNetToken'; // 获取联网token
|
|
static const String lockReset = '/v1/lock/delete'; // 重置锁
|
|
static const String getLockSettingData =
|
|
'/v1/lock/getLockSettingData'; // 获取锁应用设置
|
|
static const String changeAdminKeyboardPwdURL =
|
|
'/v1/lock/changeAdminKeyboardPwd'; // 更新管理员密码
|
|
static const String checkKeyboardpwdName =
|
|
'/v1/keyboardPwd/checkKeyboardpwdName'; // 检测密码是否重复
|
|
|
|
// 卡
|
|
static const String cardList = '/v1/identityCard/list';
|
|
static const String addCard = '/v1/identityCard/add';
|
|
static const String editCard = '/v1/identityCard/update';
|
|
static const String resetCard = '/v1/identityCard/clear';
|
|
static const String deleteCard = '/v1/identityCard/delete';
|
|
|
|
// 密码
|
|
static const String passwordList = '/v1/keyboardPwd/listKeyboardPwd';
|
|
static const String addCustoomPassword = '/v1/keyboardPwd/add';
|
|
static const String addOffLinePassword = '/v1/keyboardPwd/get';
|
|
static const String updatePassword = '/v1/keyboardPwd/update';
|
|
static const String deletePassword = '/v1/keyboardPwd/delete';
|
|
static const String resetPassword = '/v1/keyboardPwd/clear';
|
|
|
|
static const String fingerprintList = '/v1/fingerprint/list';
|
|
static const String addFingerprint = '/v1/fingerprint/add';
|
|
static const String editFingerprint = '/v1/fingerprint/update';
|
|
static const String deleteFingerprint = '/v1/fingerprint/delete';
|
|
static const String resetFingerprint = '/v1/fingerprint/clear';
|
|
|
|
static const String faceList = '/v1/face/list';
|
|
static const String addFace = '/v1/face/add';
|
|
static const String editFace = '/v1/face/update';
|
|
static const String deleteFace = '/v1/face/delete';
|
|
static const String resetFace = '/v1/face/clear';
|
|
|
|
//电表
|
|
static const String electricMeterList = '/v1/elec/list';
|
|
static const String electricMeterAdd = '/v1/elec/add';
|
|
static const String electricMeterRefresh = '/v1/elec/refreshElecInfo';
|
|
static const String electricMeterClose = '/v1/elec/closeElec';
|
|
static const String electricMeterOpen = '/v1/elec/openElec';
|
|
static const String electricMeterGetUseEleRecord = '/v1/elec/getUseEleRecord';
|
|
static const String electricMeterSet = '/v1/elec/updateElecSetting';
|
|
static const String electricMeterDelet = '/v1/elec/delete';
|
|
static const String electricMeterDetail = '/v1/elec/detail';
|
|
|
|
// 热水表
|
|
static const String hotWaterMeterList = '/v1/hotWater/list';
|
|
static const String hotWaterMeterAdd = '/v1/hotWater/add';
|
|
static const String hotWaterMeterRefresh = '/v1/hotWater/refreshWaterInfo';
|
|
static const String hotWaterMeterClose = '/v1/hotWater/closeWater';
|
|
static const String hotWaterMeterOpen = '/v1/hotWater/openWater';
|
|
static const String hotWaterMeterRecord = '/v1/hotWater/getUseTonsRecord';
|
|
static const String hotWaterMeterReadRecord = '/v1/hotWater/getReadRecord';
|
|
static const String hotWaterMeterDelet = '/v1/hotWater/delete';
|
|
static const String hotWaterMeterSet = '/v1/hotWater/updateWaterSetting';
|
|
|
|
// 冷水表
|
|
static const String coldWaterMeterList = '/v1/coldWater/list';
|
|
static const String coldWaterMeterAdd = '/v1/coldWater/add';
|
|
static const String coldWaterMeterRefresh = '/v1/coldWater/refreshWaterInfo';
|
|
static const String coldWaterMeterClose = '/v1/coldWater/closeWater';
|
|
static const String coldWaterMeterOpen = '/v1/coldWater/openWater';
|
|
static const String coldWaterMeterRecord = '/v1/coldWater/getUseTonsRecord';
|
|
static const String coldWaterMeterReadRecord = '/v1/coldWater/getReadRecord';
|
|
static const String coldWaterMeterDelet = '/v1/coldWater/delete';
|
|
static const String coldWaterMeterSet = '/v1/coldWater/updateWaterSetting';
|
|
|
|
//电子钥匙
|
|
static const String electricKeysList = '/v1/key/listKey';
|
|
static const String electricKeySender = '/v1/key/send';
|
|
static const String electricKeySendBatch = '/v1/key/sendBatch';
|
|
static const String electricKeyEdit = '/v1/key/update';
|
|
static const String electricKeyDelet = '/v1/key/delete';
|
|
static const String electricKeyClear = '/v1/key/clear';
|
|
static const String electricKeyFreeze = '/v1/key/freeze'; //冻结
|
|
static const String electricKeyUnfreeze = '/v1/key/unfreeze'; //解冻
|
|
static const String electricUpdateLockUserNo =
|
|
'/v1/key/updateLockUserNo'; //电子钥匙-更新钥匙UserNo
|
|
|
|
// 操作记录
|
|
static const String recordList = '/v1/lockRecord/records';
|
|
static const String getLastRecordTime = '/v1/lockRecord/getLastRecordTime';
|
|
static const String uploadLockRecord = '/v1/lockRecord/upload';
|
|
|
|
static const String getServerTime = '/v1/lock/queryDate';
|
|
static const String updateLockSetting =
|
|
'/v1/lockSetting/updateLockSetting'; // 更新锁设置
|
|
static const String readeLockSetting =
|
|
'/v1/lockSetting/getLockSetting'; // 读取锁设置
|
|
static const String getGatewayConfig =
|
|
'/v1/gateway/getGatewayConfig';
|
|
static const String getDeviceNetworkInfo =
|
|
'/v1/deviceNetwork/getNetworkInfo';
|
|
static const String updateDeviceNetworkInfo =
|
|
'/v1/deviceNetwork/setting';
|
|
static const String remoteUnlocking =
|
|
'/v1/gateway/unlock';
|
|
}
|