移除IService中的约束,不再强制要求实现接口,由各模块自行实现
This commit is contained in:
parent
c18ee4036d
commit
8439531c54
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue