using System;
using System.Collections.Generic;
namespace Stat.IDAL
{
    public interface IWebsiteStructure
    {
        /// <summary>
        /// 新增/删除/修改 
        /// </summary>
        /// <param name="model">实体类</param>
        /// <returns>-1:存储过程执行失败,-2:存在相同的主键,Insert:返回插入自动ID,Update:返回更新记录数,Delete:返回删除记录数</returns>
        Int32 WebsiteStructureInsertUpdateDelete(Model.WebsiteStructure model);
        /// <summary>
        /// 网站结构规则 分页
        /// </summary>
        /// <param name="pageInfo"></param>
        /// <param name="Structure"></param>
        /// <returns></returns>
        IList<Model.WebsiteStructure> GetList(ref Model.PageInfo pageInfo, Model.WebsiteStructure Structure);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ruleID"></param>
        /// <returns></returns>
        IList<Model.WebsiteStructure> GetList(int ruleID);
        /// <summary>
        /// 限统计使用
        /// </summary>
        /// <param name="webID"></param>
        /// <returns></returns>
        IList<Model.StatStructure> GetRule(int webID);
        /// <summary>
        /// 报表时使用
        /// </summary>
        /// <param name="webID"></param>
        /// <returns></returns>
        IList<Model.WebsiteStructure> GetRuleList(int webID);
    }
}
