Ejemplo n.º 1
0
        public async Task <object> CreateChan(string chanName, string clientId)
        {
            ApiResult <object> result = new ApiResult <object>();

            var(status, msg) = await ImHelper.CreateChan(chanName, clientId);

            if (!status)
            {
                result.Code = 1;
            }
            result.Msg  = msg;
            result.Data = new { };
            return(result);
        }