using Admin.Core.Model.Input; using Admin.Core.Service.Admin.Api.Input; using Admin.Core.Model.Output; using Admin.Core.Model.Admin; using System.Threading.Tasks; namespace Admin.Core.Service.Admin.Api { /// /// 接口服务 /// public interface IApiService { /// /// 获得一条记录 /// /// /// Task GetAsync(long id); /// /// 获得列表 /// /// /// Task ListAsync(string key); /// /// 获得分页 /// /// /// Task PageAsync(PageInput model); /// /// 添加 /// /// /// Task AddAsync(ApiAddInput input); /// /// 修改 /// /// /// Task UpdateAsync(ApiUpdateInput input); /// /// 删除 /// /// /// Task DeleteAsync(long id); /// /// 软删除 /// /// /// Task SoftDeleteAsync(long id); /// /// 批量软删除 /// /// /// Task BatchSoftDeleteAsync(long[] ids); /// /// 同步 /// /// /// Task SyncAsync(ApiSyncInput input); } }