using System; using System.Collections.Generic; using Common; using System.Linq.Expressions; using Common.Entity; using Common.DJYModel; namespace djy.IService.Djy { /// /// 接口基类 /// 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); } }