36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using F9WebAiTest.Application.Common;
|
|
using F9WebAiTest.Application.Dtos.SYS.WuziMulus;
|
|
using F9WebAiTest.Domain.Interfaces;
|
|
|
|
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.WuziMulus;
|
|
|
|
/// <summary>物资分组读仓储</summary>
|
|
public interface IWuziGroupReadRepository : IDInterface
|
|
{
|
|
Task<List<WuziGroupReadDto_View>> GetAllAsync();
|
|
Task<WuziGroupReadDto_Edit> GetByIdForEditAsync(long id);
|
|
|
|
/// <summary>是否存在下级分组</summary>
|
|
Task<bool> ExistChildAsync(long id);
|
|
|
|
/// <summary>分组下是否存在物资</summary>
|
|
Task<bool> ExistMuluAsync(long id);
|
|
|
|
/// <summary>生成新编号(父级编号 + 2 位序号)</summary>
|
|
Task<string> GetNewCodeAsync(long parentId);
|
|
}
|
|
|
|
/// <summary>物资目录读仓储</summary>
|
|
public interface IWuziMuluReadRepository : IDInterface
|
|
{
|
|
Task<PageResult<WuziMuluReadDto_View>> GetPagedAsync(long groupId, string keyword, int pageIndex, int pageSize);
|
|
|
|
Task<WuziMuluReadDto_Edit> GetByIdForEditAsync(long id);
|
|
|
|
/// <summary>生成新编号(分组编号 + 2 位序号)</summary>
|
|
Task<string> GetNewCodeAsync(long groupId);
|
|
|
|
/// <summary>物资选项(供其它模块选择物资;keyword 支持名称/编号/拼音模糊)</summary>
|
|
Task<List<WuziMuluOptionDto>> GetOptionsAsync(string keyword, int limit);
|
|
}
|