using System; using System.Collections.Generic; using System.Text; using System.Data; using Song.Entities; namespace Song.ServiceInterfaces { /// /// 友情链接的管理 /// public interface ILinks : WeiSha.Common.IBusinessInterface { #region 友情链接项 /// /// 添加友情链接 /// /// 业务实体 void LinksAdd(Links entity); /// /// 申请友链接(外网申请的交换连接) /// /// void LinksApply(Links entity); /// /// 通过审核(对外网申请的交换连接进行审核) /// /// void LinksVerify(Links entity); /// /// 修改 /// /// 业务实体 void LinksSave(Links entity); /// /// 删除 /// /// 业务实体 void LinksDelete(Links entity); /// /// 删除,按主键ID; /// /// 实体的主键 void LinksDelete(int identify); /// /// 删除,按链接项名称 /// /// 链接项名称 void LinksDelete(int orgid, string name); /// /// 获取单一实体对象,按主键ID; /// /// 实体的主键 /// Links LinksSingle(int identify); /// /// 获取单一实体对象,按链接项名称 /// /// 链接项名称 /// Links LinksSingle(int orgid, string ttl); /// /// 获取同一分类下的最大排序号; /// /// 分类Id /// int LinksMaxTaxis(int orgid, int sortId); /// 获取某个院系的所有链接项; /// /// 是否显示 /// Links[] GetLinksAll(int orgid, bool? isShow); /// /// 取成情链接 /// /// 分类Id,如果为空则取所有 /// 是否显示 /// 是否使用 /// 取多少条记录,如果小于等于0,则取所有 /// Links[] GetLinks(int orgid, int sortId, bool? isShow, bool? isUse, int count); Links[] GetLinks(int orgid, string sortName, bool? isShow, bool? isUse, int count); /// /// 分页获取所有的链接项; /// /// 分类id /// /// /// /// Links[] GetLinksPager(int orgid, int sortId, int size, int index, out int countSum); /// /// 分页获取所有链接项 /// /// 分类id /// 是否使用 /// 是否显示 /// 检索字符 /// /// /// /// Links[] GetLinksPager(int orgid, int sortId, bool? isUse, bool? isShow, string searTxt, int size, int index, out int countSum); /// /// 分页获取所有链接项 /// /// /// /// /// 是否通过审核 /// 是否是申请的 /// /// /// /// /// Links[] GetLinksPager(int orgid, int sortId, bool? isUse, bool? isShow, bool? isVeri, bool? isApply, string searTxt, int size, int index, out int countSum); /// /// 分页获取所有的链接项; /// /// 是否显示 /// /// /// /// Links[] GetLinksPager(int orgid, bool? isShow, int size, int index, out int countSum); /// /// 将当前项目向上移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool LinksRemoveUp(int id); /// /// 将当前项目向下移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool LinksRemoveDown(int id); #endregion #region 友情链接分类项 /// /// 添加 /// /// 业务实体 int SortAdd(LinksSort entity); /// /// 修改 /// /// 业务实体 void SortSave(LinksSort entity); /// /// 删除 /// /// 业务实体 void SortDelete(LinksSort entity); /// /// 删除,按主键ID; /// /// 实体的主键 void SortDelete(int identify); /// /// 删除,按分类名称 /// /// 分类名称 void SortDelete(string name); /// /// 获取单一实体对象,按主键ID; /// /// 实体的主键 /// LinksSort SortSingle(int identify); /// /// 获取单一实体对象,按分类名称 /// /// 分类名称 /// LinksSort SortSingle(string name); /// /// 获取同一父级下的最大排序号; /// /// 父Id /// int SortMaxTaxis(int orgid, int parentId); /// /// 获取对象;即所有分类; /// /// LinksSort[] GetSortAll(int orgid, bool? isUse, bool? isShow); /// /// 取指定条数的友情链接分类 /// /// /// /// /// /// LinksSort[] GetSortCount(int orgid, bool? isUse, bool? isShow, int count); /// /// 分页获取 /// /// /// /// /// /// /// /// LinksSort[] GetSortPager(int orgid, bool? isUse, bool? isShow, string searTxt, int size, int index, out int countSum); /// /// 当前对象名称是否重名 /// /// 业务实体 /// bool SortIsExist(int orgid, LinksSort entity); /// /// 将当前项目向上移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool SortRemoveUp(int id); /// /// 将当前项目向下移动;仅在当前对象的同层移动,即同一父节点下的对象这前移动; /// /// /// 如果已经处于顶端,则返回false;移动成功,返回true bool SortRemoveDown(int id); #endregion } }