Пример #1
0
        /// <summary>
        /// 查询页面所调用方法,获取所有的数据
        /// </summary>
        /// <param name="siteId"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        //public static List<ArticleInfo> Seek(int siteId, string key)
        //{
        //    var list = ArticleManage.Seek(key);
        //    foreach(var item in list){
        //        LoadExtensionInfo(item);
        //    }
        //    return list;
        //}
        #endregion

        #region == 获得某一站点所有文章的发布时间,主要为后台查询文章用,暂时没用 ==
        /// <summary>
        /// 获得某一站点所有文章的发布时间,主要为后台查询文章用
        /// </summary>
        /// <param name="siteId"></param>
        /// <returns></returns>
        //public static List<Tuple<string, string>> GetAllPublishDateBySiteId(int siteId) {
        //    //return ArticleManage.GetAllPublishDateBySiteId(siteId);
        //    return null;
        //}
        #endregion

        #region == 设置文章发布状态 ==
        /// <summary>
        /// 设置文章发布状态
        /// </summary>
        /// <param name="status"></param>
        public static bool SetPublishStatus(int id, bool status)
        {
            return(ArticleManage.SetPublishStatus(id, status));
        }