2026-01-18 20:21:14 +08:00
|
|
|
class HttpApiConsts {
|
|
|
|
|
static const String baseUrl = "http://1.95.137.212:8081";
|
|
|
|
|
|
|
|
|
|
/// 账号相关
|
|
|
|
|
// 登录
|
|
|
|
|
static const String loginUrl = "$baseUrl/login";
|
|
|
|
|
|
|
|
|
|
///设备相关
|
|
|
|
|
// 获取设备列表
|
|
|
|
|
static const String getUserDevicesList = "$baseUrl/iot/device/list";
|
|
|
|
|
// 绑定设备
|
|
|
|
|
static const String bindDevice = "$baseUrl/forward/device/bind";
|
|
|
|
|
// 解绑设备
|
|
|
|
|
static const String unbindDevice = "$baseUrl/forward/device/unbind";
|
|
|
|
|
// 切换设备
|
|
|
|
|
static const String switchDevice = "$baseUrl/forward/device/switchDevice";
|
2026-02-26 08:45:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取设备位置
|
|
|
|
|
static const String getDeviceLocation = "$baseUrl/iot/device/userDevice";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-01-18 20:21:14 +08:00
|
|
|
}
|