feat(store): 扩展临时时段配置
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.Extensions.Logging;
|
||||
using TakeoutSaaS.Application.App.Stores.Commands;
|
||||
using TakeoutSaaS.Application.App.Stores.Dto;
|
||||
using TakeoutSaaS.Domain.Stores.Entities;
|
||||
using TakeoutSaaS.Domain.Stores.Enums;
|
||||
using TakeoutSaaS.Domain.Stores.Repositories;
|
||||
using TakeoutSaaS.Shared.Abstractions.Constants;
|
||||
using TakeoutSaaS.Shared.Abstractions.Exceptions;
|
||||
@@ -39,7 +40,12 @@ public sealed class CreateStoreHolidayCommandHandler(
|
||||
{
|
||||
StoreId = request.StoreId,
|
||||
Date = request.Date,
|
||||
IsClosed = request.IsClosed,
|
||||
EndDate = request.EndDate,
|
||||
IsAllDay = request.IsAllDay,
|
||||
StartTime = request.StartTime,
|
||||
EndTime = request.EndTime,
|
||||
OverrideType = request.OverrideType,
|
||||
IsClosed = request.OverrideType == OverrideType.Closed,
|
||||
Reason = request.Reason?.Trim()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user