作业首页和机器状态的数据
This commit is contained in:
@@ -2,6 +2,9 @@ import '../env/env_config.dart';
|
||||
|
||||
class HttpApiConsts {
|
||||
static String get baseUrl => EnvConfig.baseUrl;
|
||||
static String get saveRegion => '$baseUrl/system/region/save';
|
||||
static String get regionsBySite => '$baseUrl/system/region/selectBySiteId';
|
||||
static String get deleteRegions => '$baseUrl/system/region/delete';
|
||||
|
||||
/// 账号相关
|
||||
// 登录
|
||||
@@ -12,7 +15,9 @@ class HttpApiConsts {
|
||||
static String get getUserDevicesList => "$baseUrl/iot/device/list";
|
||||
// 绑定设备
|
||||
static String get bindDevice => "$baseUrl/iot/device/bind";
|
||||
// 解绑设备
|
||||
// 解绑设备(V2 批量接口:body {deviceIds, type},type 取值见 UnbindScope)
|
||||
static String get unbindDeviceV2 => "$baseUrl/iot/device/unbind";
|
||||
// 解绑设备(旧 forward 服接口:单设备,body {deviceId, deviceName})
|
||||
static String get unbindDevice => "$baseUrl/forward/device/unbind";
|
||||
// 切换设备
|
||||
static String get switchDevice => "$baseUrl/forward/device/switchDevice";
|
||||
@@ -42,6 +47,16 @@ class HttpApiConsts {
|
||||
static String get getDeviceBySpiltCode =>
|
||||
"$baseUrl/iot/device/getDeviceBySpiltCode";
|
||||
|
||||
// 一键寻车(GET,query 参数 deviceId = 设备编码 MC700-…,不是数字主键)
|
||||
static String get hostSearchDevice => "$baseUrl/iot/host/searchDevice";
|
||||
|
||||
// GET,2=自主任务,3=远程遥控;路径 modeChage 沿用后端协议拼写。
|
||||
static String get hostModeChange => "$baseUrl/iot/host/modeChage";
|
||||
|
||||
// 修改设备别名(只写 deviceAlias,deviceName 保持不变)
|
||||
static String get updateDeviceAlias =>
|
||||
"$baseUrl/forward/device/updateDeviceAlias";
|
||||
|
||||
// 获取机器人列表
|
||||
static String get getRobotList => "$baseUrl/iot/device/getSiteList";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user