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"; }