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.

95 lines
2.4 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace GDZZ.Application.Help
{
1 year ago
/// <summary>
/// 缓存接口
/// </summary>
public interface ICacheService
{
#region 聊天接口
Task<bool> 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);
1 year ago
/// <summary>
/// 获取AccessToken
/// </summary>
/// <returns></returns>
Task<string> GetAccessTokenAsync();
/// <summary>
/// 设置AccessToken
/// </summary>
/// <returns></returns>
Task SetAccessTokenAsync(string Access);
#endregion
#region 二维码生成
/// <summary>
/// 存储二维码bate[]
/// </summary>
/// <returns></returns>
Task<string> GetQRCodeAsync(long UserID);
/// <summary>
/// 存储二维码bate[]
/// </summary>
/// <returns></returns>
Task SetQRCodeAsync(long UserID, string Url);
#endregion
1 year ago
}
}