using System; using System.Collections.Generic; namespace RoadFlow.Data.Interface { public interface IOrganize { /// /// 新增 /// int Add(RoadFlow.Data.Model.Organize model); /// /// 更新 /// int Update(RoadFlow.Data.Model.Organize model); /// /// 查询所有记录 /// List GetAll(); /// /// 查询单条记录 /// Model.Organize Get(string id); /// /// 删除 /// int Delete(string id); /// /// 查询记录条数 /// long GetCount(); /// /// 根据根记录 /// RoadFlow.Data.Model.Organize GetRoot(); /// /// 查询下级记录 /// List GetChilds(string ID); /// /// 得到最大排序值 /// /// int GetMaxSort(Guid id); /// /// 更新下级数 /// /// int UpdateChildsLength(string id, int length); /// /// 更新排序 /// /// int UpdateSort(Guid id, int sort); /// /// 查询一个组织的所有上级 /// List GetAllParent(string number); /// /// 查询一个组织的所有下级 /// /// 编号 /// List GetAllChild(string number); } }