using System; using System.Collections.Generic; using Ys.Core.Common; using djy.Paas.Model; using System.Linq.Expressions; namespace djy.Paas.IService { /// /// 接口基类 /// public interface IsBase{ } /// /// 接口基类 /// /// 表模型 /// 表Dto模型 public interface IsBase { /// ///LIst查询 /// /// /// ReturnPagedResult GetList(D Dto, ApiFromDto Page); /// /// List数据条件查询 /// /// /// /// ReturnPagedResult GetList(Expression> Where, ApiFromDto Page); /// ///根据主键获取详情 /// /// /// ReturnResult GetId(long Id); /// /// 根据Gid主键获取详情 /// /// /// ReturnResult GetId(Guid? gId); /// /// 条件查询获取第一条数据实体 /// /// /// ReturnResult GetId(Expression> Where); ReturnResult Add(T Dto); /// /// /// /// /// 要更新的字段列表 /// 排他不更新的列表 /// ReturnResult Up(T Dto, Expression> Where = null, List UpColumns = null, List Notcolumns = null); /// /// 批量删除 /// /// /// ReturnResult Del(Guid?[] gidlist); /// /// 条件删除 /// /// /// ReturnResult Del(Expression> Where); } }