IIMContentService.cs
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using NCC.Common.Filter;
using NCC.Message.Entitys;
using NCC.Message.Entitys.Model.IM;
using System.Collections.Generic;
namespace NCC.Message.Interfaces.Message
{
/// <summary>
/// 聊天内容
/// 版 本:V1.20.15
/// 版 权:Wesley(https://www.NCCsoft.com)
/// 作 者:NCC开发平台组
/// 日 期:2022-03-16
/// </summary>
public interface IIMContentService
{
/// <summary>
/// 获取消息列表
/// </summary>
/// <param name="sendUserId"></param>
/// <param name="receiveUserId"></param>
/// <param name="input"></param>
/// <returns></returns>
dynamic GetMessageList(string sendUserId, string receiveUserId, PageInputBase input);
/// <summary>
/// 获取未读消息
/// </summary>
/// <param name="receiveUserId"></param>
/// <returns></returns>
List<IMUnreadNumModel> GetUnreadList(string receiveUserId);
/// <summary>
/// 获取未读消息
/// </summary>
/// <param name="receiveUserId">接收者</param>
/// <returns></returns>
int GetUnreadCount(string receiveUserId);
/// <summary>
/// 发送消息
/// </summary>
/// <param name="sendUserId">发送者</param>
/// <param name="receiveUserId">接收者</param>
/// <param name="message">消息内容</param>
/// <param name="messageType">消息类型</param>
/// <returns></returns>
int SendMessage(string sendUserId, string receiveUserId, string message, string messageType);
/// <summary>
/// 已读消息
/// </summary>
/// <param name="sendUserId">发送者</param>
/// <param name="receiveUserId">接收者</param>
int ReadMessage(string sendUserId, string receiveUserId);
}
}