mac
2023-11-14 54a8c79222bba0644b02fe1dbc5d75e26ea50b5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package com.hdl.linkpm.sdk.core.api;
 
import com.hdl.linkpm.sdk.user.HDLLinkPMUser;
 
/**
 * Created by jlchen on 12/3/21.
 * B端 住宅相关的API接口
 */
public class HDLCloudHomeApi {
    /***************1.房屋管理***************/
    //house表的数据没有同步到home表、数据存在两张表里面,需要客户端调接口同步
    public static final String POST_PROGRAM_HOME_ADD = "/home-wisdom/program/home/add";
    /***************2.房间管理***************/
    //获取房间列表
    public static final String POST_ROOM_GET_LIST = "/home-wisdom/program/room/list";
    //房间列表全量更新、添加、编辑、删除都用该接口
    public static final String POST_ROOM_FULL_ADD_OR_EDIT = "/home-wisdom/program/room/add";
    /***************3.网关管理***************/
    //绑定网关
    public static final String POST_GATEWAY_BIND = "/home-wisdom/program/gateway/bindGateway";
    //强制绑定网关 如果绑定网关返回10510 已经被绑定了,则调这个接口强制换绑
    public static final String POST_GATEWAY_FORCE_BIND = "/home-wisdom/app/gateway/forceBind";
    //网关是否绑定住宅
    public static final String POST_GATEWAY_HOMEINFO = "/home-wisdom/program/gateway/getGatewayByMac";
    //解绑网关
    public static final String POST_GATEWAY_UNBIND = "/home-wisdom/program/gateway/untieGateway";
    //获取网关列表
    public static final String POST_GATEWAY_GET_LIST = "/home-wisdom/app/gateway/getGatewayList";
    //获取网关信息
    public static final String POST_GATEWAY_GET_INFO = "/home-wisdom/program/gateway/info";
    //网关替换
    public static final String POST_GATEWAY_REPLACE = "/home-wisdom/program/gateway/replace";
    /***************4.设备、功能增删改查管理***************/
    //设备基本信息列表(oid)全量添加
    public static final String POST_DEVICE_OID_LIST_FULL_ADD = "/home-wisdom/program/device/oid/add";
    //设备基本信息列表(oid)获取
    public static final String POST_DEVICE_OID_LIST_GET = "/home-wisdom/program/device/oid/list";
    //设备基本信息(oid)删除
    public static final String POST_DEVICE_OID_REMOVE = "/home-wisdom/program/device/oid/remove";
    //设备(功能)全量更新
    public static final String POST_FUNCTION_LIST_FULL_ADD= "/home-wisdom/program/device/add";
    //获取产品分类树
    public static final String POST_CATEGORY_LIST_ALLTREE= "/iot-cloud/mgmt/product/category/allTree";
    //获取网关列表
    public static final String POST_GATEWAY_LIST= "/home-wisdom/program/gateway/getGatewayList";
    //获取产品分类下产品
    public static final String POST_CATEGORY_DEVICE_LIST= "/iot-cloud/product/hardware/list";
    //设备(功能)列表获取
    public static final String POST_FUNCTION_LIST_GET= "/home-wisdom/program/device/list";
    //设备(功能)删除,支持批量
    public static final String POST_FUNCTION_BATCH_DELETE= "/home-wisdom/program/device/delete";
    //设备(功能)修改,支持批量
    public static final String POST_FUNCTION_BATCH_EDIT= "/home-wisdom/program/device/edit";
    //设备控制 C端用户接口
    public static final String POST_FUNCTION_CONTROL= "/home-wisdom/app/device/control";
    //设备绑定房间
    public static final String POST_DEVICE_BINDROOM="/home-wisdom/app/device/bindRoom";
    //设备名称修改
    public static final String POST_DEVICE_RENAME="/home-wisdom/app/device/rename";
 
    //绑定/编辑独立设备(毫米波)
    public static final String POST_DEVICE_INDEPENDENT_REGISTER= "/home-wisdom/program/device/independentRegister";
    //解绑独立设备(毫米波)
    public static final String POST_DEVICE_INDEPENDENT_UNBIND= "/home-wisdom/program/device/independentUnbind";
    //设备(功能)列表获取(可以获取单个spk)
    public static final String POST_DEVICE_LIST_GET= "/home-wisdom/app/device/list";
    //获取毫米波(获取设备远程通讯信息)
    public static final String POST_DEVICE_REMOTEINFO_GET= "/home-wisdom/program/device/remoteInfo";
    /***************5.场景增删改查管理***************/
    //获取场景列表
    public static final String POST_SCENE_LIST_GET= "/home-wisdom/program/scene/list";
    //全量同步场景
    public static final String POST_SCENE_LIST_FULL_SYNC= "/home-wisdom/program/scene/sync";
    //删除场景
    public static final String POST_SCENE_DELETE= "/home-wisdom/program/scene/delete";
    //场景执行
    public static final String POST_SCENE_EXECUTE= "/home-wisdom/program/scene/execute";
    /***************6.自动化增删改查管理***************/
    //全量更新同步自动化、存在不变,不存在新增
    public static final String POST_LOGIC_FULL_SYNC= "/home-wisdom/program/logic/sync";
 
    /***************7.安防化增删改查管理***************/
    //全量更新同步安防数据、存在不变,不存在新增
    public static final String POST_SECURITY_FULL_SYNC= "/home-wisdom/program/security/sync";
 
    /***************8.OTA 固件和升级管理***************/
    //原生设备获取固件升级包下载地址
    public static final String POST_OTA_GET_NativeDeviceFirmwareDownloadUrl = "/smart-footstone/mgmt/device/ota/getNativeDeviceFirmwareDownloadUrl";
    /**驱动**/
    //Link网关驱动列表获取
    public static final String POST_OTA_GET_GatewayDrivers = "/home-wisdom/program/device/ota/getGatewayDrivers";
    //Link网关云端的驱动分页列表获取
    public static final String POST_OTA_GET_CloudGatewayDrivers = "/smart-footstone/driver/buspro/download";
    //Link网关驱动升级OTA命令下发
    public static final String POST_OTA_GatewayDriverUpgrade = "/home-wisdom/program/device/ota/gatewayDriverUpgrade";
    //LINK网关获取驱动升级包下载地址
    public static final String POST_OTA_GET_LinkDeviceDriverDownloadUrl = "/smart-footstone/mgmt/device/ota/getLinkDeviceDriverDownloadUrl";
    /**固件**/
    //设备固件列表获取
    public static final String POST_OTA_GET_DeviceFirmwares = "/home-wisdom/program/device/ota/getDeviceFirmwares";
    //设备固件云端的驱动分页列表获取
    public static final String POST_OTA_GET_CloudDeviceFirmwares = "/smart-footstone/firmware/firmwareVersion/getLastOne";
    //设备固件升级OTA命令
    public static final String POST_OTA_DeviceFirmwareUpgrade = "/home-wisdom/program/device/ota/deviceFirmwareUpgrade";
    //设备获取固件升级包下载地址
    public static final String POST_OTA_GET_LinkDeviceFirmwareDownloadUrl = "/smart-footstone/mgmt/device/ota/getLinkDeviceFirmwareDownloadUrl";
 
    //获取IARCC三方固件分页
    public static final String POST_OTA_GET_FIRMWARE_PAGE = "/iot-cloud/mgmt/third/firmware/page";
    //获取IARCC三方固件分类
    public static final String POST_OTA_GET_FIRMWARE_LIST = "/iot-cloud/mgmt/third/firmware/list";
 
    //帮助中心问答列表
    public static final String POST_QUESTION_GET_LIST = "/crm-wisdom/support/center/list";
 
 
    /**
     * 获取住宅完整的请求地址
     * @param api
     * @return
     */
    public static String getRequestUrl(String api){
        return HDLLinkPMUser.getInstance().getHomeRegionUrl() + api;
    }
 
}