using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stat.IDAL
{
    public interface IGatherServer
    {
        /// <summary>
        /// 新增/删除/修改
        /// </summary>
        /// <param name="model">实体类</param>
        /// <returns>-1:存储过程执行失败,-2:存在相同的主键,Insert:返回插入自动ID,Update:返回更新记录数,Delete:返回删除记录数</returns>
        Int32 InsertUpdateDelete(Model.GatherServer model);
        /// <summary>
        /// 获取 
        /// </summary>
        /// <returns></returns>
        IList<Model.GatherServer> Get(Model.GatherServer gatherModel, ref Model.PageInfo pageModel);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Model.GatherServer Get(int id);
    }
}
