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.

64 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GDZZ.Application.Help
{
public interface ICacheService
{
#region 聊天接口
Task DelLiveHistoryService(long UserID);
Task<List<LiveHistoryLists>> GetLiveHistoryService(long UserID);
Task SetLiveHistoryService(long UserID, List<LiveHistoryLists> liveMessageLists);
#endregion
#region 聊天详情接口
Task SetMessage(List<LiveMessageList> liveMessages, long UserID, long ChatUserID);
Task SetUnreadAsync(long UserID, long ChatID);
Task<int> GetUnreadAsync(long UserID, long ChatID);
#endregion
#region 用户信息
/// <summary>
///
/// </summary>
/// <param name="authUserOut"></param>
/// <param name="UserID"></param>
/// <returns></returns>
Task SetUserInfoAsync(AuthUserOut authUserOut, long UserID);
/// <summary>
/// 设置用户缓存
/// </summary>
/// <param name="UserID"></param>
/// <returns></returns>
Task<AuthUserOut> GetUserInfoAsync(long UserID);
/// <summary>
/// 设置验证码
/// </summary>
/// <returns></returns>
Task SetVerifyCode(string Phone, string Verify);
/// <summary>
/// 获取验证码
/// </summary>
/// <param name="UserID"></param>
/// <returns></returns>
Task<string> GetVerifyCode(string Phone);
#endregion
}
}