You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

74 lines
2.1 KiB

using ce.autofac.extension;
using learun.util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace learun.iapplication
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.11.05
/// 描 述:即时通讯消息内容
/// </summary>
public interface IMMsgIBLL : IBLL
{
#region 获取数据
/// <summary>
/// 获取列表数据(最近的10条聊天记录)
/// </summary>
/// <returns></returns>
Task<IEnumerable<IMMsgEntity>> GetList(string sendUserId, string recvUserId);
/// <summary>
/// 获取列表数据(小于某个时间点的5条记录)
/// </summary>
/// <param name="myUserId">我的ID</param>
/// <param name="otherUserId">对方的ID</param>
/// <param name="time">时间</param>
/// <returns></returns>
Task<IEnumerable<IMMsgEntity>> GetListByTime(string myUserId, string otherUserId, DateTime time);
/// <summary>
/// 获取列表数据(大于某个时间的所有数据)
/// </summary>
/// <param name="myUserId">我的ID</param>
/// <param name="otherUserId">对方的ID</param>
/// <param name="time">时间</param>
/// <returns></returns>
Task<IEnumerable<IMMsgEntity>> GetListByTime2(string myUserId, string otherUserId, DateTime time);
/// <summary>
/// 获取列表分页数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="sendUserId"></param>
/// <param name="recvUserId"></param>
/// <param name="keyword"></param>
/// <returns></returns>
Task<IEnumerable<IMMsgEntity>> GetPageList(Pagination pagination, string sendUserId, string recvUserId, string keyword);
#endregion 获取数据
#region 提交数据
/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
Task DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增)
/// </summary>
/// <param name="entity">实体</param>
/// <returns></returns>
Task SaveEntity(IMMsgEntity entity);
#endregion 提交数据
}
}