| | |
| | | { |
| | | public class NewAPI |
| | | { |
| | | #region 新微服务接口 |
| | | //#region 新微服务接口 |
| | | //*********************************************** |
| | | //注意:和住宅相关的接口要请求住宅所在区域的域名 regionUrl |
| | | //*********************************************** |
| | |
| | | /// 更新个人信息 |
| | | /// </summary> |
| | | public const string API_POST_Member_UpdateMemberInfo = "/smart-footstone/member/memberInfo/updateMemberInfo"; |
| | | /// <summary> |
| | | /// 上传头像 |
| | | /// </summary> |
| | | public const string API_POST_Head_Upload = "/home-wisdom/app/head/portrait/upload"; |
| | | /// <summary> |
| | | /// 下载头像 |
| | | /// </summary> |
| | | public const string API_POST_Head_Down = "/home-wisdom/app/head/portrait/down"; |
| | | /// <summary> |
| | | /// 根据账号下载头像 |
| | | /// </summary> |
| | | public const string API_POST_Head_DownWithAccount = "/home-wisdom/app/head/portrait/downWithAccount"; |
| | | ///// <summary> |
| | | ///// 上传头像 |
| | | ///// </summary> |
| | | //public const string API_POST_Head_Upload = "/home-wisdom/app/head/portrait/upload"; |
| | | ///// <summary> |
| | | ///// 下载头像 |
| | | ///// </summary> |
| | | //public const string API_POST_Head_Down = "/home-wisdom/app/head/portrait/down"; |
| | | ///// <summary> |
| | | ///// 根据账号下载头像 |
| | | ///// </summary> |
| | | //public const string API_POST_Head_DownWithAccount = "/home-wisdom/app/head/portrait/downWithAccount"; |
| | | /// <summary> |
| | | /// 绑定认证(手机/邮箱) |
| | | /// </summary> |
| | |
| | | public const string API_POST_Member_UnbindWithAccount = "/smart-footstone/member/memberInfo/unbindWithAccount"; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 查询功能介绍列表 |
| | | /// </summary> |
| | | public const string API_POST_FunctionIntroductionList = "/home-wisdom/app/functionIntroduction/list"; |
| | | #endregion |
| | | |
| | | #region ■ HomeCluster -- 住宅管理接口___________________________ |
| | | ///// <summary> |
| | | ///// 添加住宅 |
| | | ///// </summary> |
| | | //public const string API_POST_Addhome = "/HomeCluster/V1/addhome"; |
| | | |
| | | /// <summary> |
| | | /// 绑定住宅 |
| | | /// </summary> |
| | | public const string Api_Post_BindlingResidence = "/app/home/deliver"; |
| | | /// <summary> |
| | | /// 获取住宅分页 |
| | | /// </summary> |
| | |
| | | /// 更新住宅 |
| | | /// </summary> |
| | | public const string API_POST_Home_UpdateHome = "/home-wisdom/app/home/update"; |
| | | |
| | | /// <summary> |
| | | /// 住宅迁移 |
| | | /// </summary> |
| | | public const string API_POST_Home_Transfer = "/home-wisdom/app/home/transfer"; |
| | | #endregion |
| | | |
| | | #region ■ 子账号 -- 添加住宅成员___________________________ |
| | |
| | | /// 子账号管理员获取主账号授权Token |
| | | /// </summary> |
| | | public const string API_POST_Child_GetMasterToken = "/home-wisdom/app/child/account/masterToken/get"; |
| | | ///// <summary> |
| | | ///// 下载子账号头像 |
| | | ///// </summary> |
| | | //public const string API_POST_Child_DownloadHeadImage = "/home-wisdom/app/child/account/getHeadPortrait"; |
| | | /// <summary> |
| | | /// 下载子账号头像 |
| | | /// 下载账号头像 |
| | | /// </summary> |
| | | public const string API_POST_Child_DownloadHeadImage = "/home-wisdom/app/child/account/getHeadPortrait"; |
| | | public const string API_POST_DownloadHeadImage = "/home-wisdom/app/head/portrait/downWithAccount"; |
| | | |
| | | #region 数据分享 |
| | | /// <summary> |
| | | /// 分享指定文件给指定成员 |
| | |
| | | #endregion |
| | | |
| | | #region ■ GatewayCluster -- 网关___________________________ |
| | | |
| | | /// <summary> |
| | | /// 绑定网关到住宅 |
| | | /// </summary> |
| | | public const string API_POST_BindGateway = "/home-wisdom/app/gateway/bindGateway"; |
| | | |
| | | ///// <summary> |
| | | ///// 绑定网关到住宅 |
| | | ///// </summary> |
| | | //public const string API_POST_BindGateway = "/home-wisdom/app/gateway/bindGateway"; |
| | | /// <summary> |
| | | /// 获取住宅网关分页 |
| | | /// </summary> |
| | | public const string API_POST_GetGatewayList = "/home-wisdom/app/gateway/getGatewayList"; |
| | | |
| | | /// <summary> |
| | | /// 获取网关信息 |
| | | /// </summary> |
| | | public const string Api_Post_GetGatewayInfo = "/home-wisdom/app/gateway/info"; |
| | | ///// <summary> |
| | | ///// 解绑绑网关到住宅 |
| | | ///// </summary> |
| | |
| | | #endregion |
| | | |
| | | #region ■ HomebackupCluster -- 住宅备份微服务___________________________ |
| | | /// <summary> |
| | | /// 创建文件夹 |
| | | /// </summary> |
| | | public const string API_POST_Folder_Create = "/home-wisdom/app/backup/folder/create"; |
| | | |
| | | /// <summary> |
| | | /// 删除文件夹 |
| | | /// </summary> |
| | | public const string API_POST_Folder_Delete = "/home-wisdom/app/backup/folder/delete"; |
| | | |
| | | /// <summary> |
| | | /// 查找所有文件夹 |
| | | /// </summary> |
| | | public const string API_POST_Folder_FindAll = "/home-wisdom/app/backup/folder/findAll"; |
| | | |
| | | /// <summary> |
| | | /// 更新文件夹 |
| | | /// </summary> |
| | | public const string API_POST_Folder_Update = "/home-wisdom/app/backup/folder/update"; |
| | | |
| | | /// <summary> |
| | | /// 上传文件 |
| | | /// </summary> |
| | | public const string API_POST_File_Create = "/home-wisdom/app/backup/file/create"; |
| | | ///// <summary> |
| | | ///// 创建文件夹 |
| | | ///// </summary> |
| | | //public const string API_POST_Folder_Create = "/home-wisdom/app/backup/folder/create"; |
| | | |
| | | ///// <summary> |
| | | ///// 删除文件 |
| | | ///// 删除文件夹 |
| | | ///// </summary> |
| | | //public const string API_DELETE_File_Delete = "/HomebackupCluster/V1/file/delete"; |
| | | //public const string API_POST_Folder_Delete = "/home-wisdom/app/backup/folder/delete"; |
| | | |
| | | /// <summary> |
| | | /// 下载备份文件 |
| | | /// </summary> |
| | | public const string API_POST_File_Down = "/home-wisdom/app/backup/file/downOne"; |
| | | ///// <summary> |
| | | ///// 查找所有文件夹 |
| | | ///// </summary> |
| | | //public const string API_POST_Folder_FindAll = "/home-wisdom/app/backup/folder/findAll"; |
| | | |
| | | /// <summary> |
| | | /// 查询一个文件夹所有文件名 |
| | | /// </summary> |
| | | public const string API_POST_File_FindAll = "/home-wisdom/app/backup/file/findAll"; |
| | | ///// <summary> |
| | | ///// 更新文件夹 |
| | | ///// </summary> |
| | | //public const string API_POST_Folder_Update = "/home-wisdom/app/backup/folder/update"; |
| | | |
| | | ///// <summary> |
| | | ///// 上传文件 |
| | | ///// </summary> |
| | | //public const string API_POST_File_Create = "/home-wisdom/app/backup/file/create"; |
| | | |
| | | /////// <summary> |
| | | /////// 删除文件 |
| | | /////// </summary> |
| | | ////public const string API_DELETE_File_Delete = "/HomebackupCluster/V1/file/delete"; |
| | | |
| | | ///// <summary> |
| | | ///// 下载备份文件 |
| | | ///// </summary> |
| | | //public const string API_POST_File_Down = "/home-wisdom/app/backup/file/downOne"; |
| | | |
| | | ///// <summary> |
| | | ///// 查询一个文件夹所有文件名 |
| | | ///// </summary> |
| | | //public const string API_POST_File_FindAll = "/home-wisdom/app/backup/file/findAll"; |
| | | |
| | | #endregion |
| | | |
| | | #region ■ zigbeespeakerservice -- 语音控制服务___________________________ |
| | | |
| | | /// <summary> |
| | | /// 获取音箱列表 |
| | | /// </summary> |
| | | public const string API_GET_Speaker_Auth = "/speakerservices/Auth"; |
| | | ///// <summary> |
| | | ///// 获取音箱列表 |
| | | ///// </summary> |
| | | //public const string API_GET_Speaker_Auth = "/speakerservices/Auth"; |
| | | |
| | | /// <summary> |
| | | /// 修改音箱备注 |
| | | /// </summary> |
| | | public const string API_PUT_Speaker_Auth_Rename = "/speakerservices/Auth"; |
| | | ///// <summary> |
| | | ///// 修改音箱备注 |
| | | ///// </summary> |
| | | //public const string API_PUT_Speaker_Auth_Rename = "/speakerservices/Auth"; |
| | | |
| | | /// <summary> |
| | | /// 获取设备和场景列表 |
| | | /// </summary> |
| | | public const string API_GET_Speaker_BatchEdit_V2 = "/speakerservices/BatchEdit_V2"; |
| | | ///// <summary> |
| | | ///// 获取设备和场景列表 |
| | | ///// </summary> |
| | | //public const string API_GET_Speaker_BatchEdit_V2 = "/speakerservices/BatchEdit_V2"; |
| | | |
| | | /// <summary> |
| | | /// 添加设备和场景列表 |
| | | /// </summary> |
| | | public const string API_POST_Speaker_BatchEdit_V2 = "/speakerservices/BatchEdit_V2"; |
| | | ///// <summary> |
| | | ///// 添加设备和场景列表 |
| | | ///// </summary> |
| | | //public const string API_POST_Speaker_BatchEdit_V2 = "/speakerservices/BatchEdit_V2"; |
| | | |
| | | |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 检测更新,是否需要强制更新 |
| | | /// </summary> |
| | | public const string API_POST_CheckAppVersion= "/smart-footstone/app/checkAppVersion"; |
| | | /// <summary> |
| | | /// 查询APP最新版本 |
| | | /// </summary> |
| | | public const string API_POST_GetAppVersion = "/smart-footstone/app/getAppVersion"; |
| | | public const string API_POST_CheckAppVersion= "/smart-footstone/app/appVersion/check"; |
| | | ///// <summary> |
| | | ///// 查询APP最新版本 |
| | | ///// </summary> |
| | | //public const string API_POST_GetAppVersion = "/smart-footstone/app/getAppVersion"; |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region ■ -- 房间场景背景图片上传下载接口___________________________ |
| | | /// <summary> |
| | | /// 上传图片 |
| | | /// </summary> |
| | | public const string API_POST_UploadImage = "/home-wisdom/app/images/upload_image"; |
| | | /// <summary> |
| | | /// 查询图片路径 |
| | | /// </summary> |
| | | public const string API_POST_GetImageUrl = "/home-wisdom/app/images/get_image_url"; |
| | | #endregion |
| | | |
| | | |
| | | #region Kaede -- 设备接口____________________________ |
| | | /// <summary> |
| | | /// 获取设备列表 |
| | | /// </summary> |
| | | public const string Api_Post_GetDevcieList = "/home-wisdom/app/device/list"; |
| | | /// <summary> |
| | | /// 获取设备详情 |
| | | /// </summary> |
| | | public const string Api_Post_GetDevcieInfoList = "/home-wisdom/app/device/info"; |
| | | /// <summary> |
| | | /// 刷新设备状 |
| | | /// </summary> |
| | | public const string Api_Post_RefreshDeviceStatus = "/home-wisdom/app/device/status/refresh"; |
| | | /// <summary> |
| | | /// 设备控制 |
| | | /// </summary> |
| | | public const string Api_Post_ControlDevice = "/home-wisdom/app/device/control"; |
| | | /// <summary> |
| | | /// 编辑设备信息 |
| | | /// </summary> |
| | | public const string Api_Post_EditDevice = "/home-wisdom/app/device/edit"; |
| | | /// <summary> |
| | | /// 设备绑定房间 |
| | | /// </summary> |
| | | public const string Api_Post_BindDeviceToRoom = "/home-wisdom/app/device/bindRoom"; |
| | | /// <summary> |
| | | /// 设备解绑房间 |
| | | /// </summary> |
| | | public const string Api_Post_UnbindDeviceToRoom = "/home-wisdom/app/device/unbindRoom"; |
| | | /// <summary> |
| | | /// 设备名称修改 |
| | | /// </summary> |
| | | public const string Api_Post_EditDeviceName = "/home-wisdom/app/device/rename"; |
| | | /// <summary> |
| | | /// 收藏设备 |
| | | /// </summary> |
| | | public const string Api_Post_CollectDevice = "/home-wisdom/app/device/collect"; |
| | | /// <summary> |
| | | /// 取消收藏设备 |
| | | /// </summary> |
| | | public const string Api_Post_CancelCollectDevice = "/home-wisdom/app/device/cancelCollect"; |
| | | /// <summary> |
| | | /// 获取环境传感器历史数据 小时/周/月统计数据 |
| | | /// </summary> |
| | | public const string Api_Post_EnvironmentalSensorHistoricalData = "/home-wisdom/app/statistics/device/hourWeekMonth"; |
| | | /// <summary> |
| | | /// 获取安防传感器历史数据 |
| | | /// </summary> |
| | | public const string Api_Post_ArmSensorHistoricalData = "/home-wisdom/app/device/message"; |
| | | #endregion |
| | | |
| | | #region Kaede -- 场景接口____________________________ |
| | | /// <summary> |
| | | /// 获取场景列表 |
| | | /// </summary> |
| | | public const string Api_Post_GetSecneList = "/home-wisdom/app/scene/list"; |
| | | /// <summary> |
| | | /// 获取场景详情 |
| | | /// </summary> |
| | | public const string Api_Post_GetSecneInfo = "/home-wisdom/app/scene/info"; |
| | | /// <summary> |
| | | /// 添加场景 |
| | | /// </summary> |
| | | public const string Api_Post_AddSecne = "/home-wisdom/app/scene/add"; |
| | | /// <summary> |
| | | /// 编辑场景 |
| | | /// </summary> |
| | | public const string Api_Post_EditSecne = "/home-wisdom/app/scene/update"; |
| | | /// <summary> |
| | | /// 删除场景 |
| | | /// </summary> |
| | | public const string Api_Post_DeleteSecne = "/home-wisdom/app/scene/delete"; |
| | | /// <summary> |
| | | /// 执行场景 |
| | | /// </summary> |
| | | public const string Api_Post_ExecuteSecne = "/home-wisdom/app/scene/execute"; |
| | | /// <summary> |
| | | /// 收藏场景 |
| | | /// </summary> |
| | | public const string Api_Post_CollectScene = "/home-wisdom/app/scene/collect"; |
| | | /// <summary> |
| | | /// 取消收藏场景 |
| | | /// </summary> |
| | | public const string Api_Post_CancelCollectScene = "/home-wisdom/app/scene/cancelCollect"; |
| | | #endregion |
| | | |
| | | #region Kaede -- 房间接口____________________________ |
| | | /// <summary> |
| | | /// 获取设备列表 |
| | | /// </summary> |
| | | public const string Api_Post_GetRoomList = "/home-wisdom/app/room/list"; |
| | | /// <summary> |
| | | /// 添加房间 |
| | | /// </summary> |
| | | public const string Api_Post_AddRoom = "/home-wisdom/app/room/add"; |
| | | /// <summary> |
| | | /// 删除房间 |
| | | /// </summary> |
| | | public const string Api_Post_DelRoom = "/home-wisdom/app/room/delete"; |
| | | /// <summary> |
| | | /// 修改房间 |
| | | /// </summary> |
| | | public const string Api_Post_UpdateRoom = "/home-wisdom/app/room/update"; |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region ■ -- 房间、设备、场景分享___________________________ |
| | | /// <summary> |
| | | /// 添加分享 |
| | | /// </summary> |
| | | public const string API_POST_Share_Add = "/home-wisdom/app/share/add"; |
| | | /// <summary> |
| | | /// 删除分享 |
| | | /// </summary> |
| | | public const string API_POST_Share_Delete = "/home-wisdom/app/share/delete"; |
| | | /// <summary> |
| | | /// 获取分享 |
| | | /// </summary> |
| | | public const string API_POST_Share_GetList = "/home-wisdom/app/share/list"; |
| | | #endregion |
| | | |
| | | |
| | | #region ■ -- 自动化接口___________________________ |
| | | /// <summary> |
| | | /// 获取自动化列表 |
| | | /// </summary> |
| | | public const string API_POST_Logic_List= "/home-wisdom/app/logic/list"; |
| | | public const string API_POST_Logic_List = "/home-wisdom/app/logic/list"; |
| | | /// <summary> |
| | | ///获取自动化详情 |
| | | /// </summary> |
| | |
| | | public const string API_POST_Logic_Enable = "/home-wisdom/app/logic/enable"; |
| | | #endregion |
| | | |
| | | #region -- 第三方设备相关接口___________________________ |
| | | /// <summary> |
| | | /// 获取添加过的品牌列表 |
| | | /// </summary> |
| | | public const string Api_Post_GetBindBrandList = "/home-wisdom/app/product/brand/bindList"; |
| | | /// <summary> |
| | | /// 获取品牌列表 |
| | | /// </summary> |
| | | public const string Api_Post_GetBrandList = "/home-wisdom/app/product/brand/list"; |
| | | |
| | | #region ■ -- 红外宝接口___________________________ |
| | | /// <summary> |
| | | /// 红外宝设备定位 |
| | | /// </summary> |
| | | public const string API_POST_Ir_DeviceFind = "/home-wisdom/app/device/ir/deviceFind"; |
| | | /// <summary> |
| | | /// 红外宝下的遥控器列表 |
| | | /// </summary> |
| | | public const string API_POST_Ir_List = ":/home-wisdom/app/device/ir/list"; |
| | | /// <summary> |
| | | /// 遥控器红外码学习 |
| | | /// </summary> |
| | | public const string API_POST_Ir_CodeStudy = "/home-wisdom/app/device/ir/codeStudy"; |
| | | /// <summary> |
| | | ///红外宝红外码库试码 |
| | | /// </summary> |
| | | public const string API_POST_Ir_CodeTest = "/home-wisdom/app/device/ir/codeTest"; |
| | | /// <summary> |
| | | /// 红外宝遥控器添加 |
| | | /// </summary> |
| | | public const string API_POST_Ir_Add = "/home-wisdom/app/device/ir/add"; |
| | | /// <summary> |
| | | /// 遥控器自学按键删除 |
| | | /// </summary> |
| | | public const string API_POST_Ir_CodeRemove = "/home-wisdom/app/device/ir/codeRemove"; |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | } |