From da40946e8cf2ffb41157f5c388c525ccccaca692 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 29 七月 2022 15:44:58 +0800 Subject: [PATCH] 备份 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 242ae06..02d3aaf 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -2623,6 +2623,79 @@ return pack; } + + /// <summary> + /// 鑾峰彇绗笁鏂瑰搧鐗屽垪琛╛Iot + /// </summary> + public ResponsePackNew Get3tyIotBrandList() + { + Dictionary<string, object> d = new Dictionary<string, object>(); + var requestJson = HttpUtil.GetSignRequestJson(d); + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetBrandList_Iot, requestJson); + + return pack; + } + /// <summary> + /// 鎼滅储绗笁鏂硅澶嘷iot + /// </summary> + /// <returns></returns> + public ResponsePackNew Search3tyIotDevice(string companyId) + { + + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("companyId", companyId); + var requestJson = HttpUtil.GetSignRequestJson(d); + + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Search3tyIotDevice, requestJson); + + return pack; + } + + /// <summary> + /// 鎼滅储绗笁鏂硅澶囧姛鑳藉垪琛╛iot + /// </summary> + /// <returns></returns> + public ResponsePackNew Get3tyIotDeviceFunctionList(string companyId) + { + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("companyId", companyId); + var requestJson = HttpUtil.GetSignRequestJson(d); + + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Get3tyIotFunction, requestJson); + return pack; + } + + /// <summary> + /// 璁剧疆绗笁鏂硅澶囩粦瀹氱殑浣忓畢 + /// </summary> + /// <returns></returns> + public ResponsePackNew Set3tyIotFunctionToHouse(string deviceId,string homeId) + { + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("deviceId", deviceId); + d.Add("homeId", homeId); + var requestJson = HttpUtil.GetSignRequestJson(d); + + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Setting3tyIotFunctionToHouse, requestJson); + return pack; + } + + /// <summary> + /// 瑙g粦绗笁鏂瑰钩鍙拌处鍙� + /// </summary> + /// <returns></returns> + public ResponsePackNew Unbound3tyIotAccount(string companyId) + { + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("companyId", companyId); + var requestJson = HttpUtil.GetSignRequestJson(d); + + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Unbound3tyIotAccount, requestJson); + return pack; + } + + + /// <summary> /// 鑾峰彇缁戝畾鐨勭涓夋柟鍝佺墝鍒楄〃 /// </summary> -- Gitblit v1.8.0