feat: 桌码管理支持区域、批量生成与二维码导出
This commit is contained in:
@@ -61,4 +61,39 @@ public static class StoreMapping
|
||||
Reason = holiday.Reason,
|
||||
CreatedAt = holiday.CreatedAt
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// 映射桌台区域 DTO。
|
||||
/// </summary>
|
||||
/// <param name="area">区域实体。</param>
|
||||
/// <returns>DTO。</returns>
|
||||
public static StoreTableAreaDto ToDto(StoreTableArea area) => new()
|
||||
{
|
||||
Id = area.Id,
|
||||
TenantId = area.TenantId,
|
||||
StoreId = area.StoreId,
|
||||
Name = area.Name,
|
||||
Description = area.Description,
|
||||
SortOrder = area.SortOrder,
|
||||
CreatedAt = area.CreatedAt
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// 映射桌台 DTO。
|
||||
/// </summary>
|
||||
/// <param name="table">桌台实体。</param>
|
||||
/// <returns>DTO。</returns>
|
||||
public static StoreTableDto ToDto(StoreTable table) => new()
|
||||
{
|
||||
Id = table.Id,
|
||||
TenantId = table.TenantId,
|
||||
StoreId = table.StoreId,
|
||||
AreaId = table.AreaId,
|
||||
TableCode = table.TableCode,
|
||||
Capacity = table.Capacity,
|
||||
Tags = table.Tags,
|
||||
Status = table.Status,
|
||||
QrCodeUrl = table.QrCodeUrl,
|
||||
CreatedAt = table.CreatedAt
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user