新增仓储领域实体、仓储库、WarehouseService 全套接口及数据库迁移脚本; 实现店铺授权、店铺订单服务与库存匹配创建小包单;补充仓储模块 RBAC 权限种子数据。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
1.6 KiB
C#
25 lines
1.6 KiB
C#
using Fake.Application;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Oms.Domain.CustomersAggregate.Repositories;
|
|
using Oms.Domain.WarehouseAggregate.Repositories;
|
|
|
|
namespace Oms.Application.Services.Warehouse;
|
|
|
|
/// <summary>
|
|
/// 仓储模块 API 服务(我的包裹 / 库存 / SKU / 入库预报)。
|
|
/// </summary>
|
|
[ApiExplorerSettings(GroupName = "OMS-Warehouse")]
|
|
public partial class WarehouseService : ApplicationService
|
|
{
|
|
private ICustomerRepository CustomerRepository => LazyServiceProvider.GetRequiredService<ICustomerRepository>();
|
|
private ICSkuRepository SkuRepository => LazyServiceProvider.GetRequiredService<ICSkuRepository>();
|
|
private ICBinLocationRepository BinLocationRepository => LazyServiceProvider.GetRequiredService<ICBinLocationRepository>();
|
|
private ICInventoryRepository InventoryRepository => LazyServiceProvider.GetRequiredService<ICInventoryRepository>();
|
|
private ICInboundNoticeRepository InboundNoticeRepository => LazyServiceProvider.GetRequiredService<ICInboundNoticeRepository>();
|
|
private ICInboundBoxRepository InboundBoxRepository => LazyServiceProvider.GetRequiredService<ICInboundBoxRepository>();
|
|
private ICInboundBoxLineRepository InboundBoxLineRepository => LazyServiceProvider.GetRequiredService<ICInboundBoxLineRepository>();
|
|
private ICParcelRepository ParcelRepository => LazyServiceProvider.GetRequiredService<ICParcelRepository>();
|
|
private ICParcelItemRepository ParcelItemRepository => LazyServiceProvider.GetRequiredService<ICParcelItemRepository>();
|
|
private ICSkuPlatformMapRepository SkuPlatformMapRepository => LazyServiceProvider.GetRequiredService<ICSkuPlatformMapRepository>();
|
|
}
|