feat: 完成门店子资源管理与文档同步
This commit is contained in:
@@ -26,16 +26,31 @@ public interface IStoreRepository
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<StoreBusinessHour>> GetBusinessHoursAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 依据标识获取营业时段。
|
||||
/// </summary>
|
||||
Task<StoreBusinessHour?> FindBusinessHourByIdAsync(long businessHourId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取门店配送区域配置。
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<StoreDeliveryZone>> GetDeliveryZonesAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 依据标识获取配送区域。
|
||||
/// </summary>
|
||||
Task<StoreDeliveryZone?> FindDeliveryZoneByIdAsync(long deliveryZoneId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取门店节假日配置。
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<StoreHoliday>> GetHolidaysAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 依据标识获取节假日配置。
|
||||
/// </summary>
|
||||
Task<StoreHoliday?> FindHolidayByIdAsync(long holidayId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取门店桌台区域。
|
||||
/// </summary>
|
||||
@@ -61,16 +76,31 @@ public interface IStoreRepository
|
||||
/// </summary>
|
||||
Task AddBusinessHoursAsync(IEnumerable<StoreBusinessHour> hours, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新营业时段。
|
||||
/// </summary>
|
||||
Task UpdateBusinessHourAsync(StoreBusinessHour hour, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 新增配送区域。
|
||||
/// </summary>
|
||||
Task AddDeliveryZonesAsync(IEnumerable<StoreDeliveryZone> zones, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新配送区域。
|
||||
/// </summary>
|
||||
Task UpdateDeliveryZoneAsync(StoreDeliveryZone zone, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 新增节假日配置。
|
||||
/// </summary>
|
||||
Task AddHolidaysAsync(IEnumerable<StoreHoliday> holidays, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新节假日配置。
|
||||
/// </summary>
|
||||
Task UpdateHolidayAsync(StoreHoliday holiday, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 新增桌台区域。
|
||||
/// </summary>
|
||||
@@ -91,6 +121,21 @@ public interface IStoreRepository
|
||||
/// </summary>
|
||||
Task SaveChangesAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 删除营业时段。
|
||||
/// </summary>
|
||||
Task DeleteBusinessHourAsync(long businessHourId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 删除配送区域。
|
||||
/// </summary>
|
||||
Task DeleteDeliveryZoneAsync(long deliveryZoneId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 删除节假日。
|
||||
/// </summary>
|
||||
Task DeleteHolidayAsync(long holidayId, long tenantId, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 更新门店。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user