feat: 桌码管理支持区域、批量生成与二维码导出

This commit is contained in:
2025-12-04 09:10:00 +08:00
parent 9051a024ea
commit 1a5209a8b1
33 changed files with 1343 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Queries;
/// <summary>
/// 导出桌码二维码查询。
/// </summary>
public sealed record ExportStoreTableQRCodesQuery : IRequest<StoreTableExportResult?>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 区域筛选。
/// </summary>
public long? AreaId { get; init; }
/// <summary>
/// 内容模板,使用 {code} 占位。
/// </summary>
public string? QrContentTemplate { get; init; }
}

View File

@@ -0,0 +1,15 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Queries;
/// <summary>
/// 门店桌台区域列表查询。
/// </summary>
public sealed record ListStoreTableAreasQuery : IRequest<IReadOnlyList<StoreTableAreaDto>>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
}

View File

@@ -0,0 +1,26 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
using TakeoutSaaS.Domain.Stores.Enums;
namespace TakeoutSaaS.Application.App.Stores.Queries;
/// <summary>
/// 门店桌码列表查询。
/// </summary>
public sealed record ListStoreTablesQuery : IRequest<IReadOnlyList<StoreTableDto>>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 区域筛选。
/// </summary>
public long? AreaId { get; init; }
/// <summary>
/// 状态筛选。
/// </summary>
public StoreTableStatus? Status { get; init; }
}