移除IService中的约束,不再强制要求实现接口,由各模块自行实现

This commit is contained in:
lihanbo 2024-10-18 11:23:51 +08:00
parent c18ee4036d
commit 8439531c54
1 changed files with 1 additions and 9 deletions

View File

@ -1,17 +1,9 @@
using LFlow.Base.Utils;
namespace LFlow.Base.Interfaces; namespace LFlow.Base.Interfaces;
/// <summary> /// <summary>
/// ·þÎñ½Ó¿Ú /// ·þÎñ½Ó¿Ú
/// </summary> /// </summary>
/// <typeparam name="T"></typeparam> /// <typeparam name="T"></typeparam>
public interface IService<T> where T : class, IModel, new() public interface IService//<T> where T : class, IModel, new()
{ {
T GetById(string id);
List<T> Search(T whereObj);
int DeleteById(string id);
T Save(T entity, bool isUpdate);
PagedApiResult<List<T>> GetAll(int pageIndex, int pageSize);
} }