/// <summary>获取所有群组</summary> public ChatResult GetGroups() { var groups = _chatBLL.GetGroupsFromUserId(_userInfo.UserId); return(ChatResult.Success(groups)); }
/// <summary>新建群组</summary> public ChatResult CreateGroup(string groupName) { var groupId = _chatBLL.CreateGroup(groupName); return(ChatResult.Success(new { groupId })); }