Files
pos-system/services/fnb-engine-net/src/FnbEngine.API/Application/Queries/GetTablesQuery.cs

28 lines
630 B
C#

// EN: Query to get tables by shop.
// VI: Query lấy danh sách bàn theo shop.
using MediatR;
namespace FnbEngine.API.Application.Queries;
/// <summary>
/// EN: Query to get tables by shop.
/// VI: Query lấy danh sách bàn theo shop.
/// </summary>
public record GetTablesQuery(Guid ShopId) : IRequest<IEnumerable<TableDto>>;
/// <summary>
/// EN: Table data transfer object.
/// VI: Data transfer object cho Table.
/// </summary>
public record TableDto(
Guid Id,
Guid ShopId,
string TableNumber,
int Capacity,
string? Zone,
string Status,
int? PositionX = null,
int? PositionY = null
);