feat: 门店员工与排班管理上线
This commit is contained in:
@@ -26,6 +26,16 @@ public interface IMerchantRepository
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<MerchantStaff>> GetStaffAsync(long merchantId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定门店的员工列表。
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<MerchantStaff>> GetStaffByStoreAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 依据标识获取员工。
|
||||
/// </summary>
|
||||
Task<MerchantStaff?> FindStaffByIdAsync(long staffId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定商户的合同列表。
|
||||
/// </summary>
|
||||
@@ -75,6 +85,11 @@ public interface IMerchantRepository
|
||||
/// </summary>
|
||||
Task DeleteMerchantAsync(long merchantId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 删除员工。
|
||||
/// </summary>
|
||||
Task DeleteStaffAsync(long staffId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 记录审核日志。
|
||||
/// </summary>
|
||||
|
||||
@@ -72,9 +72,14 @@ public interface IStoreRepository
|
||||
Task<StoreTable?> FindTableByIdAsync(long tableId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取门店员工排班。
|
||||
/// 获取门店员工排班(可选时间范围)。
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<StoreEmployeeShift>> GetShiftsAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
|
||||
Task<IReadOnlyList<StoreEmployeeShift>> GetShiftsAsync(long storeId, long tenantId, DateTime? from = null, DateTime? to = null, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 依据标识获取排班。
|
||||
/// </summary>
|
||||
Task<StoreEmployeeShift?> FindShiftByIdAsync(long shiftId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 新增门店。
|
||||
@@ -136,6 +141,11 @@ public interface IStoreRepository
|
||||
/// </summary>
|
||||
Task AddShiftsAsync(IEnumerable<StoreEmployeeShift> shifts, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新排班。
|
||||
/// </summary>
|
||||
Task UpdateShiftAsync(StoreEmployeeShift shift, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 持久化变更。
|
||||
/// </summary>
|
||||
@@ -166,6 +176,11 @@ public interface IStoreRepository
|
||||
/// </summary>
|
||||
Task DeleteTableAsync(long tableId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 删除排班。
|
||||
/// </summary>
|
||||
Task DeleteShiftAsync(long shiftId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新门店。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user