feat(store): 扩展临时时段配置
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using TakeoutSaaS.Domain.Stores.Enums;
|
||||
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Stores.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// 门店节假日 DTO。
|
||||
/// 门店临时时段 DTO。
|
||||
/// </summary>
|
||||
public sealed record StoreHolidayDto
|
||||
{
|
||||
@@ -27,12 +28,37 @@ public sealed record StoreHolidayDto
|
||||
public long StoreId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 日期。
|
||||
/// 开始日期。
|
||||
/// </summary>
|
||||
public DateTime Date { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否闭店。
|
||||
/// 结束日期(可选)。
|
||||
/// </summary>
|
||||
public DateTime? EndDate { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否全天。
|
||||
/// </summary>
|
||||
public bool IsAllDay { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间。
|
||||
/// </summary>
|
||||
public TimeSpan? StartTime { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间。
|
||||
/// </summary>
|
||||
public TimeSpan? EndTime { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 覆盖类型。
|
||||
/// </summary>
|
||||
public OverrideType OverrideType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否闭店(兼容)。
|
||||
/// </summary>
|
||||
public bool IsClosed { get; init; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user