using System; using System.Collections.Generic; using System.Text; using System.Data; using Song.Entities; namespace Song.ServiceInterfaces { /// /// 网站内容的栏目管理 /// public interface IColumns : WeiSha.Common.IBusinessInterface { /// /// 添加 /// /// 业务实体 int Add(Columns entity); /// /// 修改 /// /// 业务实体 void Save(Columns entity); /// /// 修改排序 /// /// void SaveOrder(string xml); /// /// 删除,按主键ID; /// /// 实体的主键 void Delete(int identify); /// /// 获取单一实体对象,按主键ID; /// /// 实体的主键 /// Columns Single(int identify); /// /// 获取所有栏目 /// /// 机构id /// /// Columns[] All(int orgid, bool? isUse); /// /// 取某一类的栏目 /// /// 机构id /// 栏目类型,产品Product,新闻news,图片Picture,视频video,下载download,单页article /// /// /// Columns[] ColumnCount(int orgid, string type, bool? isUse, int count); /// /// 取某一类的栏目 /// /// /// 父级id /// 栏目类型,产品Product,新闻news,图片Picture,视频video,下载download,单页article /// /// /// Columns[] ColumnCount(int orgid, int pid, string type, bool? isUse, int count); /// /// 当前栏目下的子级栏目 /// /// 当前栏目id,如果0,则取顶级栏目 /// /// Columns[] Children(int pid, bool? isUse); /// /// 是否有下级栏目 /// /// /// /// bool IsChildren(int pid, bool? isUse); /// /// 当前分类下的所有子分类id /// /// /// List TreeID(int id); /// /// 将当前项目向上移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool RemoveUp(int orgid, int id); /// /// 将当前项目向下移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool RemoveDown(int orgid, int id); } }