IAsyncCrudAppService.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using Abp.Application.Services;
  2. using Abp.Application.Services.Dto;
  3. namespace IwbZero.AppServiceBase
  4. {
  5. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput, in TDeleteInput> : IAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, TGetInput, TDeleteInput>
  6. where TEntityDto : IEntityDto<TPrimaryKey>
  7. where TUpdateInput : IEntityDto<TPrimaryKey>
  8. where TGetInput : IEntityDto<TPrimaryKey>
  9. where TDeleteInput : IEntityDto<TPrimaryKey>
  10. {
  11. //Task<TEntityDto> Get(TGetInput input);
  12. //Task<PagedResultDto<TEntityDto>> GetAll(TGetAllInput input);
  13. //Task<TEntityDto> Create(TCreateInput input);
  14. //Task<TEntityDto> Update(TUpdateInput input);
  15. //Task Delete(TDeleteInput input);
  16. }
  17. #region AppService
  18. public interface IIwbAsyncCrudAppService<TEntityDto>
  19. : IIwbAsyncCrudAppService<TEntityDto, int>
  20. where TEntityDto : IEntityDto<int>
  21. {
  22. }
  23. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey>
  24. : IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, PagedAndSortedResultRequestDto>
  25. where TEntityDto : IEntityDto<TPrimaryKey>
  26. {
  27. }
  28. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput>
  29. : IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TEntityDto, TEntityDto>
  30. where TEntityDto : IEntityDto<TPrimaryKey>
  31. {
  32. }
  33. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput>
  34. : IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TCreateInput>
  35. where TEntityDto : IEntityDto<TPrimaryKey>
  36. where TCreateInput : IEntityDto<TPrimaryKey>
  37. {
  38. }
  39. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput>
  40. : IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, EntityDto<TPrimaryKey>>
  41. where TEntityDto : IEntityDto<TPrimaryKey>
  42. where TUpdateInput : IEntityDto<TPrimaryKey>
  43. {
  44. }
  45. public interface IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput>
  46. : IIwbAsyncCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, TGetInput, EntityDto<TPrimaryKey>>
  47. where TEntityDto : IEntityDto<TPrimaryKey>
  48. where TUpdateInput : IEntityDto<TPrimaryKey>
  49. where TGetInput : IEntityDto<TPrimaryKey>
  50. {
  51. }
  52. #endregion
  53. }