mac
2023-11-03 9e875b253959eff8f6af567308ad804fe69d0a62
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
127
128
129
130
131
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 HDLCloudUserApi {
    /***************用户管理***************/
    //获取账号所在区域
    public static final String POST_RegionByAccount = "/smart-footstone/region/regionByUserAccount";
    //登录接口(B端)
    public static final String POST_LOGIN = "/smart-footstone/user/oauth/login";
    //登录接口(C端)
    public static final String C_POST_LOGIN = "/smart-footstone/member/oauth/login";
    //发送消息验证码
    public static final String POST_VERIFICATION_CODE_SEND = "/smart-footstone/verification/message/send";
    //用户找回密码 忘记密码,通过邮箱和手机号找回
    public static final String POST_FORGET_PROGRAM_PWD = "/smart-footstone/user/oauth/forgetProgramPwd";
    //更改个人密码
    public static final String POST_UPDATE_PROGRAM_PASSWORD = "/smart-footstone/user/userInfo/updateProgramPassword";
    //获取员工列表
    public static final String POST_GET_USER_LIST = "/smart-footstone/user/userInfo/getUserList";
    //获取用户个人信息 C端
    public static final String POST_GET_MEMBER_INFO = "/smart-footstone/member/memberInfo/getMemberInfo";
    //更新个人信息 C端
    public static final String POST_UPDATE_MEMBER_INFO = "/smart-footstone/member/memberInfo/updateMemberInfo";
    //上传图片
    public static final String POST_UPLOAD_IMAGE = "/home-wisdom/app/images/upload_image";
    //上传图片(新)
    public static final String POST_UPLOAD_IMAGE_NEW = "/basis-cosmos/file/upload";
    //查询图片路径
    public static final String POST_GET_IMAGE_URL = "/home-wisdom/app/images/get_image_url";
    //    //版本检测更新
//    public static final String POST_APP_APPVERSION_CHECK = "/smart-footstone/app/appVersion/check";
    //支持APP和小程序检测
    public static final String POST_APP_APPVERSION_CHECK = "/basis-footstone/app/appVersion/check";
    //mqtt连接需要的数据
    public static final String MQTT_INFO_URL = "/home-wisdom/app/mqtt/getRemoteInfo";
 
 
    /***************项目管理***************/
    /**
     * 获取完整的请求地址
     *
     * @param api
     * @return
     */
    public static String getRequestUrl(String api) {
        return HDLLinkPMUser.getInstance().getUserRegionUrl() + api;
    }
 
 
    /***************模板管理***************/
    //创建模板
    public static final String POST_TEMPLATE_CREATE = "/smart-footstone/mgmt/template/extends/debug/create";
    //获取模板列表
    public static final String POST_TEMPLATE_GET_LIST = "/smart-footstone/mgmt/template/extends/debug/page";
    //删除模板
    public static final String POST_TEMPLATE_DELETE = "/smart-footstone/mgmt/template/extends/debug/delete";
    //添加网关(全量)
    public static final String POST_TEMPLATE_UPDATE_GATEWAY = "/smart-footstone/mgmt/template/detail/gateway/fullUpdate";
    //添加房间(全量)
    public static final String POST_TEMPLATE_UPDATE_ROOM = "/smart-footstone/mgmt/template/detail/room/fullUpdate";
    //添加设备(全量)
    public static final String POST_TEMPLATE_UPDATE_DEVICES = "/smart-footstone/mgmt/template/detail/oid/fullUpdate";
    //获取设备列表
    public static final String POST_TEMPALTE_GET_DEVICES = "/smart-footstone/mgmt/template/detail/oid/list";
    //添加功能(全量)
    public static final String POST_TEMPLATE_UPDATE_FUNCTIONS = "/smart-footstone/mgmt/template/detail/sid/fullUpdate";
    //添加场景(全量)
    public static final String POST_TEMPLATE_UPDATE_SCENES = "/smart-footstone/mgmt/template/detail/scene/fullUpdate";
    //添加自动化(全量)
    public static final String POST_TEMPLATE_UPDATE_LOGIC = "/smart-footstone/mgmt/template/detail/logic/fullUpdate";
    //添加安防
    public static final String POST_TEMPLATE_UPDATE_SECURITY = "/smart-footstone/mgmt/template/detail/security/fullUpdate";
    //获取空间信息
    public static final String POST_GET_TEMPLATE_SPATIAL_INFO = "/smart-footstone/mgmt/template/detail/room/list";
    //获取网关信息
    public static final String POST_GET_TEMPLATE_GATEWAY_LIST = "/smart-footstone/mgmt/template/detail/gateway/list";
    //获取功能列表
    public static final String POST_GET_TEMPLATE_FUNCTION_LIST = "/smart-footstone/mgmt/template/detail/sid/list";
    //获取场景列表
    public static final String POST_GET_TEMPLATE_SCENE_LIST = "/smart-footstone/mgmt/template/detail/scene/list";
    //获取安防列表
    public static final String POST_GET_TEMPLATE_SECURITY_LIST = "/smart-footstone/mgmt/template/detail/security/list";
    //获取自动化列表
    public static final String POST_GET_TEMPLATE_LOGIC_LIST = "/smart-footstone/mgmt/template/detail/logic/list";
 
 
    /***************数据备份***************/
    /**
     * 上传数据备份
     */
    public static final String POST_BACKUP_UPLOAD = "/smart-footstone/debug/backup/file/upload";
    /**
     * 获取文件下载地址
     */
    public static final String POST_BACKUP_DOWNLOAD_URL = "/smart-footstone/debug/backup/file/newestUrl";
    /**
     * 删除备份数据
     */
    public static final String POST_BACKUP_DEL = "/smart-footstone/debug/backup/file/deleteByHouseIds";
 
    /**
     * 获取备份列表
     */
    public static final String POST_BACKUP_LIST = "/smart-footstone/mgmt/community/houseExtend/getHouseDebugPage";
 
    /**
     * 获取网关最新的三份备份数据
     */
    public static final String POST_GATEWAY_BACKUP_LIST = "/iot-cloud/file/device/backup/threeLatest";
    /**
     * 获取调试完成的备份文件回复
     */
    public static final String POST_GATEWAY_BACKUP_DEBUGCOMPLETEBACKUPFILE = "/iot-cloud/file/device/backup/debugCompleteBackupFile";
    /**
     * 网关恢复的备份文件
     */
    public static final String POST_GATEWAY_BACKUP_RECOVER = "/iot-cloud/file/device/backup/recover";
 
 
    /**
     * 替换网关
     */
    public static final String POST_GATEWAY_REPLACE = "/home-wisdom/program/gateway/replace";
 
 
}