add(conversationSerivice):后端新增消息会话服务add(main):完善主面板

This commit is contained in:
2025-12-29 20:39:29 +08:00
parent 06410a75e7
commit cf09984056
21 changed files with 1146 additions and 444 deletions
@@ -10,12 +10,18 @@ namespace IM_API.Interface.Services
/// </summary>
/// <param name="clearConversationsDto"></param>
/// <returns></returns>
Task<bool> ClearConversationsAsync(ClearConversationsDto clearConversationsDto);
Task<bool> ClearConversationsAsync(int userId);
/// <summary>
/// 删除单个聊天会话
/// </summary>
/// <param name="conversationId"></param>
/// <returns></returns>
Task<bool> DeleteConversationAsync(int conversationId);
/// <summary>
/// 获取用户当前消息会话
/// </summary>
/// <param name="userId">用户id</param>
/// <returns></returns>
Task<Conversation> GetConversationsAsync(int userId);
Task<List<Conversation>> GetConversationsAsync(int userId);
}
}