live-forum/server/webapi/LiveForum/LiveForum.IService/Cdk/ICdkService.cs
2026-03-24 11:27:37 +08:00

33 lines
1008 B
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 LiveForum.Model.Dto.Cdk;
namespace LiveForum.IService.Cdk
{
/// <summary>
/// CDK服务接口
/// </summary>
public interface ICdkService
{
/// <summary>
/// 检查CDK状态
/// </summary>
/// <param name="userId">用户ID</param>
/// <returns>CDK状态信息</returns>
Task<CdkStatusDto> CheckCdkStatusAsync(long userId);
/// <summary>
/// 激活CDK
/// </summary>
/// <param name="userId">用户ID</param>
/// <param name="code">CDK码</param>
/// <returns>激活结果消息</returns>
Task<string> ActivateCdkAsync(long userId, string code);
/// <summary>
/// 检查用户是否需要CDK激活才能进行互动操作
/// </summary>
/// <param name="userId">用户ID</param>
/// <returns>true-需要激活但未激活false-不需要激活或已激活</returns>
Task<bool> RequiresCdkActivationAsync(long userId);
}
}