Files
Kg.SeaTime/Service/Application.Domain/Services/Interface/Pub/IMessageService.cs
2026-05-28 19:06:40 +08:00

22 lines
702 B
C#

namespace Application.Domain;
public interface IMessageService
{
Task<int> GetNoReadCount(string userId);
#region
string GetTalkId(string userId, string otId);
Task<List<unit_user_message>> GetUserNoReadData(string talkId);
Task<List<unit_user_message>> GetUserMessageData(string talkId, int page, int limit,
RefAsync<int> total);
Task<List<MessageView>> GetUserMessage(string userId, int type, int page, int limit,
RefAsync<int> total);
Task<bool> SendMsg(string sendId, string toUser, string msg);
Task SetMsgRead(List<long> msgIds, string userId);
Task<bool> DeleteMsgByTalkId(string talkId, string userId);
#endregion
}