You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
733 B

2 years ago
using System.Collections.Generic;
using System.Threading.Tasks;
using Win_in.Sfs.Shared.Domain;
namespace Win_in.Sfs.Shared.Application.Contracts;
public interface ISfsGetByCodeAppService<TEntityDto>
where TEntityDto : IHasCode
{
/// <summary>
/// 根据编号获取实体DTO
/// </summary>
/// <param name="code">编号</param>
/// <returns></returns>
Task<TEntityDto> GetByCodeAsync(string code);
/// <summary>
/// 根据编号列表获取实体DTO列表
/// </summary>
/// <param name="codes"></param>
/// <returns></returns>
Task<List<TEntityDto>> GetByCodesAsync(IEnumerable<string> codes);
Task<List<TEntityDto>> GetByCodesWithPostAsync(IEnumerable<string> codes);
2 years ago
}