feat: 门店员工与排班管理上线
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Stores.Dto;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Stores.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// 员工排班列表查询(支持日期区间)。
|
||||
/// </summary>
|
||||
public sealed record ListStoreEmployeeShiftsQuery : IRequest<IReadOnlyList<StoreEmployeeShiftDto>>
|
||||
{
|
||||
/// <summary>
|
||||
/// 门店 ID。
|
||||
/// </summary>
|
||||
public long StoreId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期(含),默认今日。
|
||||
/// </summary>
|
||||
public DateTime? From { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期(含),默认今日+7。
|
||||
/// </summary>
|
||||
public DateTime? To { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 可选员工筛选。
|
||||
/// </summary>
|
||||
public long? StaffId { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using MediatR;
|
||||
using TakeoutSaaS.Application.App.Stores.Dto;
|
||||
using TakeoutSaaS.Domain.Merchants.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Application.App.Stores.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// 门店员工列表查询。
|
||||
/// </summary>
|
||||
public sealed record ListStoreStaffQuery : IRequest<IReadOnlyList<StoreStaffDto>>
|
||||
{
|
||||
/// <summary>
|
||||
/// 门店 ID。
|
||||
/// </summary>
|
||||
public long StoreId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色筛选。
|
||||
/// </summary>
|
||||
public StaffRoleType? RoleType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态筛选。
|
||||
/// </summary>
|
||||
public StaffStatus? Status { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user