using zzz.Model; using SqlSugar; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace zzz.Services { /// /// 服务接口 /// /// public interface IBaseServices where TEntity : class { /// /// 根据主键取数据 /// /// /// /// /// Task GetOneById(Tkey key) where Tout : class, new(); /// /// 取分页数据 /// /// /// /// /// /// /// Task> GetPageList( Expression> whereExpression, int pageIndex = 1, int pageSize = 20, string orderByFields = null); /// /// 新增 实体 /// /// /// Task AddOne(TEntity entity); /// /// 新增 /// /// /// Task AddOne(TAddDto input) where Tkey : IEquatable //where TAdd : RootEntityTkey ; /// /// 编辑 /// /// /// /// Task UpdOne(TUpdDto input) where Tkey : IEquatable //where TUpd : RootEntityTkey ; /// /// 删除 /// /// /// Task DelOneSoft(KeyInputUpd key) where Tkey : IEquatable where TDel : RootEntityTkey ; } }