60 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
namespace Learun.Application.IM
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期2018.05.31
/// 描 述:最近联系人列表
/// </summary>
public interface IMContactsIBLL
{
#region
/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="userId">用户Id</param>
/// <returns></returns>
IEnumerable<IMContactsEntity> GetList(string userId);
/// <summary>
/// 获取列表数据
/// </summary>
/// <param name="userId">用户Id</param>
/// <param name="time">时间</param>
/// <returns></returns>
IEnumerable<IMContactsEntity> GetList(string userId, DateTime time);
/// <summary>
/// 获取实体
/// </summary>
/// <param name="userId">发送人</param>
/// <param name="otherUserId">接收人</param>
/// <returns></returns>
IMContactsEntity GetEntity(string userId, string otherUserId);
#endregion
#region
/// <summary>
/// 保存实体数据(新增、修改)
/// <param name="entity">实体数据</param>
/// <summary>
/// <returns></returns>
void SaveEntity(IMContactsEntity entity);
/// <summary>
/// 更新记录读取状态
/// </summary>
/// <param name="myUserId">自己本身用户ID</param>
/// <param name="otherUserId">对方用户ID</param>
void UpdateState(string myUserId, string otherUserId);
/// <summary>
/// 删除最近联系人
/// </summary>
/// <param name="myUserId">发起者id</param>
/// <param name="otherUserId">对方用户ID</param>
void DeleteEntity(string myUserId, string otherUserId);
#endregion
}
}