Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.

Implement API security baseline (sys_user, JWT, audit fields, transactions,
unique constraints) and Web real login with 401 handling. Document setup
and development workflows in root, WmsLite.Api, and WmsLite.Web README files.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zhougfandCursor committed 2026-05-24 14:17:47 +08:00
commit fa1b286463
241 files changed
+31188

No files matched your search

@@ -0,0 +1,60 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using WmsLite.Api.Common;
using WmsLite.Api.Dtos.Orders;
using WmsLite.Api.Models;
namespace WmsLite.Api.Repositories.Interfaces;
public interface IInboundOrderRepository : IBaseRepository<InboundOrder>
{
Task<InboundOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<InboundOrder>> GetPagedListAsync(InboundOrderPagedQuery query);
/// <summary>
/// 同一天、同一前缀下,符合「前缀+yyyyMMdd+5位数字」格式的最大流水号(无则返回 0)。用于生成 IN2026022312345。
/// </summary>
Task<int> GetMaxDailySequenceInboundAsync(string tenantId, string ownerCode, string orderPrefix, string dateYyyyMmDd);
}
public interface IInboundOrderLineRepository : IBaseRepository<InboundOrderLine>
{
Task<List<InboundOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface IOutboundOrderRepository : IBaseRepository<OutboundOrder>
{
Task<OutboundOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<OutboundOrder>> GetPagedListAsync(OutboundOrderPagedQuery query);
}
public interface IOutboundOrderLineRepository : IBaseRepository<OutboundOrderLine>
{
Task<List<OutboundOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface ITransferOrderRepository : IBaseRepository<TransferOrder>
{
Task<TransferOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<TransferOrder>> GetPagedListAsync(TransferOrderPagedQuery query);
}
public interface ITransferOrderLineRepository : IBaseRepository<TransferOrderLine>
{
Task<List<TransferOrderLine>> GetByOrderIdAsync(long orderId);
}
public interface IStocktakeOrderRepository : IBaseRepository<StocktakeOrder>
{
Task<StocktakeOrder?> GetByOrderNoAsync(string tenantId, string ownerCode, string orderNo);
Task<PagedResult<StocktakeOrder>> GetPagedListAsync(StocktakeOrderPagedQuery query);
}
public interface IStocktakeOrderLineRepository : IBaseRepository<StocktakeOrderLine>
{
Task<List<StocktakeOrderLine>> GetByOrderIdAsync(long orderId);
}