Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Stores/Commands/CreateStoreEmployeeShiftCommand.cs

47 lines
1.0 KiB
C#

using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
using TakeoutSaaS.Domain.Merchants.Enums;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 创建员工排班命令。
/// </summary>
public sealed record CreateStoreEmployeeShiftCommand : IRequest<StoreEmployeeShiftDto>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 员工 ID。
/// </summary>
public long StaffId { get; init; }
/// <summary>
/// 班次日期。
/// </summary>
public DateTime ShiftDate { get; init; }
/// <summary>
/// 开始时间。
/// </summary>
public TimeSpan StartTime { get; init; }
/// <summary>
/// 结束时间。
/// </summary>
public TimeSpan EndTime { get; init; }
/// <summary>
/// 排班角色。
/// </summary>
public StaffRoleType RoleType { get; init; } = StaffRoleType.FrontDesk;
/// <summary>
/// 备注。
/// </summary>
public string? Notes { get; init; }
}