2026-05-22 14:29:22 +08:00
|
|
|
using FileShare_Services.Core;
|
2026-05-22 11:18:47 +08:00
|
|
|
|
2026-05-22 14:29:22 +08:00
|
|
|
namespace FileShare_Services.Services.QrCode
|
2026-05-22 11:18:47 +08:00
|
|
|
{
|
2026-05-22 14:45:07 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 二维码生成服务接口,根据当前局域网地址生成访问二维码。
|
|
|
|
|
/// </summary>
|
2026-05-22 11:18:47 +08:00
|
|
|
public interface IQrCodeService
|
|
|
|
|
{
|
2026-05-22 14:45:07 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 获取当前服务器的局域网 IP 地址并生成对应的访问二维码。
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ctx">端点上下文。</param>
|
|
|
|
|
/// <returns>包含 URL 和 Base64 PNG 二维码的响应。</returns>
|
2026-05-22 11:18:47 +08:00
|
|
|
Task<object?> GenerateQrCodeAsync(ServiceEndpointContext ctx);
|
|
|
|
|
}
|
|
|
|
|
}
|