diff --git a/LFlow/Interfaces/IRepo.cs b/LFlow/Interfaces/IRepo.cs index b5a9e6f..1ba488b 100644 --- a/LFlow/Interfaces/IRepo.cs +++ b/LFlow/Interfaces/IRepo.cs @@ -20,13 +20,21 @@ public interface IRepo where T : IDataModel /// /// /// - T Delete(K id); + int Delete(K id); /// /// 保存与更新 /// /// /// T SaveOrUpdate(T entity, bool isUpdate); + /// + /// 获取所有对象列表(默认分页) + /// + /// + /// + /// + List GetAll(int pageIndex, int pageSize, ref int pageTotal); + /// /// 根据条件搜索对象列表 ///