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>
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.Threading.Tasks;
|
|
using WmsLite.Api.Common;
|
|
using WmsLite.Api.Dtos.Location;
|
|
using WmsLite.Api.Models;
|
|
|
|
namespace WmsLite.Api.Repositories.Interfaces;
|
|
|
|
public interface ILocationRepository : IBaseRepository<Location>
|
|
{
|
|
Task<Location?> GetByWarehouseAreaZoneAndLocationCodeAsync(
|
|
string tenantId,
|
|
string ownerCode,
|
|
string warehouseCode,
|
|
string areaCode,
|
|
string zoneCode,
|
|
string locationCode);
|
|
|
|
/// <summary>按仓+库区+库位编码解析;若存在多行则取分区编码最小的一条。</summary>
|
|
Task<Location?> GetByWarehouseAreaAndLocationCodeAsync(
|
|
string tenantId,
|
|
string ownerCode,
|
|
string warehouseCode,
|
|
string areaCode,
|
|
string locationCode);
|
|
|
|
Task<PagedResult<Location>> GetPagedListAsync(LocationPagedQuery query);
|
|
Task<HashSet<string>> GetExistingCodesAsync(
|
|
string tenantId,
|
|
string ownerCode,
|
|
string warehouseCode,
|
|
string areaCode,
|
|
string zoneCode,
|
|
IReadOnlyCollection<string> codes);
|
|
|
|
Task InsertManyAsync(IReadOnlyList<Location> entities);
|
|
}
|