56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
namespace Application.Domain;
|
|
|
|
public interface IMessageService
|
|
{
|
|
Task<List<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
|
|
|
|
#region 邮件消息
|
|
|
|
Task<List<unit_user_mail>> GetUserMailData(string userId, int page, int limit, RefAsync<int> total);
|
|
Task<unit_user_mail> GetMailInfo(string mailId);
|
|
Task<bool> SendMaill(string userId, string name, string sign, List<TowerGet> award, int days = 10);
|
|
|
|
Task<bool> SendMaill(List<string> userIds, string name, string sign, List<TowerGet> award,
|
|
int days = 10);
|
|
Task<bool> UpdateMaillInfo(unit_user_mail data);
|
|
|
|
#endregion
|
|
|
|
#region 通知消息
|
|
|
|
Task<List<unit_user_message_event>> GetUserEventMessage(string userId, int page, int limit,
|
|
RefAsync<int> total);
|
|
|
|
Task<unit_user_message_event> GetEventMessageInfo(string eventId);
|
|
Task<bool> UpdateEventData(unit_user_message_event data);
|
|
Task<bool> CheckAtEventMsg(string token);
|
|
|
|
Task<bool> SendEventMsg(string userId, string code, string name, string sign, string pars, string token,
|
|
List<MsgEventBtn> btns = null, int days = 10);
|
|
|
|
#endregion
|
|
|
|
#region 广播消息
|
|
|
|
Task<List<game_broadcast>> GetBroadcastData(int area);
|
|
Task<bool> SendBroadcast(string userId, string code, string msg);
|
|
|
|
#endregion
|
|
} |