18 lines
394 B
C#
18 lines
394 B
C#
using LFlow.Base.Utils;
|
|
|
|
namespace LFlow.Base.Interfaces;
|
|
/// <summary>
|
|
/// ·þÎñ½Ó¿Ú
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
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);
|
|
}
|