using System; using System.Collections.Generic; namespace RoadFlow.Data.Interface { public interface IDictionary { /// /// 新增 /// int Add(RoadFlow.Data.Model.Dictionary model); /// /// 更新 /// int Update(RoadFlow.Data.Model.Dictionary model); /// /// 查询所有记录 /// List GetAll(); /// /// 查询单条记录 /// Model.Dictionary Get(Guid id); /// /// 删除 /// int Delete(Guid id); /// /// 查询记录条数 /// long GetCount(); /// /// 根据父ID查询一条记录 /// RoadFlow.Data.Model.Dictionary GetRoot(Guid id); /// /// 查询根记录 /// RoadFlow.Data.Model.Dictionary GetRoot(); /// /// 查询下级记录 /// List GetChilds(Guid id); /// /// 查询下级记录 /// List GetChilds(string code); /// /// 查询上级记录 /// RoadFlow.Data.Model.Dictionary GetParent(Guid id); /// /// 是否包含下级记录 /// bool HasChilds(Guid id); /// /// 得到最大排序 /// int GetMaxSort(Guid id); /// /// 更新排序 /// int UpdateSort(Guid id, int sort); /// /// 根据代码查询一条记录 /// RoadFlow.Data.Model.Dictionary GetByCode(string code); } }