IApiService.cs 779 B

12345678910111213141516171819202122232425262728293031323334
  1. using ZhonTai.Admin.Core.Dto;
  2. using System.Threading.Tasks;
  3. using ZhonTai.Admin.Services.Api.Dto;
  4. using ZhonTai.Admin.Domain.Api.Dto;
  5. using System.Collections.Generic;
  6. using ZhonTai.Admin.Domain.Api;
  7. namespace ZhonTai.Admin.Services.Api;
  8. /// <summary>
  9. /// api接口
  10. /// </summary>
  11. public interface IApiService
  12. {
  13. Task<ApiGetOutput> GetAsync(long id);
  14. Task<List<ApiListOutput>> GetListAsync(string key);
  15. Task<PageOutput<ApiEntity>> GetPageAsync(PageInput<ApiGetPageDto> input);
  16. Task<long> AddAsync(ApiAddInput input);
  17. Task UpdateAsync(ApiUpdateInput input);
  18. Task DeleteAsync(long id);
  19. Task BatchDeleteAsync(long[] ids);
  20. Task SoftDeleteAsync(long id);
  21. Task BatchSoftDeleteAsync(long[] ids);
  22. Task SyncAsync(ApiSyncInput input);
  23. }