| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using Abp.Application.Services;
- using Abp.Application.Services.Dto;
- using VberZero.AppService.Base.Dto;
- namespace VberZero.AppService.Base;
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput, in TDeleteInput> : IApplicationService
- {
- Task<TEntityDto> GetDto(TGetInput input);
- Task<TEntityDto> GetDtoById(TPrimaryKey id);
- Task<TEntityDto> GetDtoByNo(string no);
- Task<PagedResultDto<TEntityDto>> GetAll(TGetAllInput input);
- Task Create(TCreateInput input);
- Task Update(TUpdateInput input);
- Task Delete(TDeleteInput input);
- }
- #region AppService
- public interface IVzCrudAppService<TEntityDto>
- : IVzCrudAppService<TEntityDto, int>
- where TEntityDto : IVzEntityDto<int>
- {
- }
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey>
- : IVzCrudAppService<TEntityDto, TPrimaryKey, PagedAndSortedResultRequestDto>
- where TEntityDto : IVzEntityDto<TPrimaryKey>
- {
- }
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput>
- : IVzCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TEntityDto, TEntityDto>
- where TEntityDto : IVzEntityDto<TPrimaryKey>
- {
- }
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput>
- : IVzCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TCreateInput>
- where TEntityDto : IVzEntityDto<TPrimaryKey>
- where TCreateInput : IVzEntityDto<TPrimaryKey>
- {
- }
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput>
- : IVzCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, VzEntityDto<TPrimaryKey>>
- where TEntityDto : IVzEntityDto<TPrimaryKey>
- where TUpdateInput : IVzEntityDto<TPrimaryKey>
- {
- }
- public interface IVzCrudAppService<TEntityDto, TPrimaryKey, in TGetAllInput, in TCreateInput, in TUpdateInput, in TGetInput>
- : IVzCrudAppService<TEntityDto, TPrimaryKey, TGetAllInput, TCreateInput, TUpdateInput, TGetInput, VzEntityDto<TPrimaryKey>>
- where TEntityDto : IVzEntityDto<TPrimaryKey>
- where TUpdateInput : IVzEntityDto<TPrimaryKey>
- where TGetInput : IVzEntityDto<TPrimaryKey>
- {
- }
- #endregion AppService
|