22 lines
702 B
C#
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
|
|
} |