/// <summary> /// 获取私信实体 /// </summary> /// <param name="messageId">私信Id</param> public MessageSession GetSession(long messageId) { return(messageSessionRepository.Get(messageId)); }
/// <summary> /// /// </summary> /// <param name="userId"></param> /// <param name="otherUserId"></param> /// <returns></returns> public MessageSession GetMessageSession(long userId, long otherUserId) { return(messageSessionRepository.Get(userId, otherUserId)); }