/// <summary>
        /// 融云-删除-聊天室保活服务
        /// </summary>
        /// <returns></returns>
        public ReturnValueModel ChatroomKeepaliveRemove(ChatroomInputDto inputDto, WorkUser workUser)
        {
            ReturnValueModel rvm = new ReturnValueModel();

            string body = $"chatroomId={HttpUtility.UrlEncode(inputDto.Id, Encoding.UTF8)}";

            string appKey    = ConfigurationManager.AppSettings["RongCloudAppKey"];
            string appSecret = ConfigurationManager.AppSettings["RongCloudAppSecret"];
            string _host     = ConfigurationManager.AppSettings["RongCloudUrl"];
            string url       = $"{_host}/chatroom/keepalive/remove.json";
            String result    = RongHttpClient.ExecutePost(appKey, appSecret, body, url, "application/x-www-form-urlencoded");


            var res = (ResponseResult)RongJsonUtil.JsonStringToObj <ResponseResult>(result);

            if (res.Code == 200)
            {
                rvm.Msg     = "success";
                rvm.Success = true;
                rvm.Result  = res;
                return(rvm);
            }
            else
            {
                rvm.Msg     = "删除聊天室保活失败";
                rvm.Success = false;
                rvm.Result  = result;
                return(rvm);
            }
        }
        /// <summary>
        /// 融云-销毁聊天室
        /// </summary>
        /// <returns></returns>
        public ReturnValueModel ChatroomDestroy(ChatroomInputDto inputDto, WorkUser workUser)
        {
            ReturnValueModel rvm = new ReturnValueModel();
            //String message = CommonUtil.CheckFiled(inputDto, "chatroom", CheckMethod.DESTORY);
            //if (null != message)
            //{
            //    rvm.Msg = "success";
            //    rvm.Success = false;
            //    rvm.Result = (ResponseResult)RongJsonUtil.JsonStringToObj<ResponseResult>(message);
            //    return rvm;
            //}
            string body = $"chatroomId={HttpUtility.UrlEncode(inputDto.Id, Encoding.UTF8)}";

            string appKey    = ConfigurationManager.AppSettings["RongCloudAppKey"];
            string appSecret = ConfigurationManager.AppSettings["RongCloudAppSecret"];
            string _host     = ConfigurationManager.AppSettings["RongCloudUrl"];
            string url       = $"{_host}/chatroom/destroy.json";

            String result = RongHttpClient.ExecutePost(appKey, appSecret, body, url, "application/x-www-form-urlencoded");

            var res = (ResponseResult)RongJsonUtil.JsonStringToObj <ResponseResult>(result);

            if (res.Code == 200)
            {
                rvm.Msg     = "success";
                rvm.Success = true;
                rvm.Result  = res;
                return(rvm);
            }
            else
            {
                rvm.Msg     = "销毁聊天室失败";
                rvm.Success = false;
                rvm.Result  = result;
                return(rvm);
            }
        }
        public IHttpActionResult ChatroomKeepaliveAdd(ChatroomInputDto inputDto)
        {
            var ret = _rongCloudService.ChatroomKeepaliveAdd(inputDto, new WorkUser());

            return(Ok(ret));
        }
        public IHttpActionResult ChatroomKeepaliveRemove(ChatroomInputDto inputDto)
        {
            var ret = _rongCloudService.ChatroomKeepaliveRemove(inputDto, WorkUser);

            return(Ok(ret));
        }
        public IHttpActionResult ChatroomDestroy(ChatroomInputDto inputDto)
        {
            var ret = _rongCloudService.ChatroomDestroy(inputDto, WorkUser);

            return(Ok(ret));
        }