using Volo.Abp.Domain.Repositories;
|
using Volo.Abp.Specifications;
|
|
namespace CMS.Plugin.HIAWms.Domain.WmsStores;
|
|
/// <summary>
|
/// WmsStore仓储
|
/// </summary>
|
public interface IWmsStoreRepository : IBasicRepository<WmsStore, Guid>
|
{
|
/// <summary>
|
/// Finds the by name asynchronous.
|
/// </summary>
|
/// <param name="name">The name.</param>
|
/// <param name="cancellationToken">The cancellation token.</param>
|
/// <returns></returns>
|
Task<WmsStore> FindByNameAsync(string name, CancellationToken cancellationToken = default);
|
|
/// <summary>
|
/// Names the exist asynchronous.
|
/// </summary>
|
/// <param name="name">The name.</param>
|
/// <param name="id">The identifier.</param>
|
/// <returns></returns>
|
Task<bool> NameExistAsync(string name, Guid? id = null);
|
|
/// <summary>
|
/// Gets the maximum sort asynchronous.
|
/// </summary>
|
/// <returns></returns>
|
Task<int> GetMaxSortAsync();
|
|
/// <summary>
|
/// Gets the list asynchronous.
|
/// </summary>
|
/// <param name="sorting">The sorting.</param>
|
/// <param name="maxResultCount">The maximum result count.</param>
|
/// <param name="skipCount">The skip count.</param>
|
/// <param name="filter">The filter.</param>
|
/// <param name="specification">The specification.</param>
|
/// <param name="includeDetails">if set to <c>true</c> [include details].</param>
|
/// <param name="cancellationToken">The cancellation token.</param>
|
/// <returns></returns>
|
Task<List<WmsStore>> GetListAsync(WmsStore? store, string sorting = null, int maxResultCount = int.MaxValue, int skipCount = 0, string filter = null, Specification<WmsStore> specification = null, bool includeDetails = false, CancellationToken cancellationToken = default);
|
|
/// <summary>
|
/// Gets the count asynchronous.
|
/// </summary>
|
/// <param name="filter">The filter.</param>
|
/// <param name="specification">The specification.</param>
|
/// <param name="cancellationToken">The cancellation token.</param>
|
/// <returns></returns>
|
Task<long> GetCountAsync(WmsStore? store, string filter = null, Specification<WmsStore> specification = null, CancellationToken cancellationToken = default);
|
}
|