From ce88de4891b87c3b7b2750575e15d6e48d518852 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 24 十月 2024 10:39:12 +0800 Subject: [PATCH] 增加云端库 --- HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/core/api/HDLCloudUserApi.java | 133 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 133 insertions(+), 0 deletions(-) diff --git a/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/core/api/HDLCloudUserApi.java b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/core/api/HDLCloudUserApi.java new file mode 100644 index 0000000..e5b0c0a --- /dev/null +++ b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/core/api/HDLCloudUserApi.java @@ -0,0 +1,133 @@ +package com.hdl.linkpm.sdk.core.api; + +import com.hdl.linkpm.sdk.user.HDLLinkPMUser; + +/** + * Created by jlchen on 12/3/21. + * B绔� 鐢ㄦ埛鐩稿叧鐨凙PI鎺ュ彛 + */ +public class HDLCloudUserApi { + /***************鐢ㄦ埛绠$悊***************/ + //鑾峰彇璐﹀彿鎵�鍦ㄥ尯鍩�(B绔�) + public static final String POST_RegionByAccount = "/smart-footstone/region/regionByUserAccount"; + //鑾峰彇璐﹀彿鎵�鍦ㄥ尯鍩燂紙C绔級 + public static final String C_POST_RegionByAccount = "/smart-footstone/region/regionByAccount"; + //鐧诲綍鎺ュ彛(B绔�) + public static final String POST_LOGIN = "/smart-footstone/user/oauth/login"; + //鐧诲綍鎺ュ彛锛圕绔級 + 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"; + + +} -- Gitblit v1.8.0