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

namespace IMODELS
{
    public interface IManageClass
    {
        /// <summary>
        /// 添加信息
        /// </summary>
        /// <param name="?"></param>
        /// <returns></returns>
         bool AddClassinfo(MODEL.MClassInfo model);
        /// <summary>
        /// 修改一条信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
         bool EditClassInfo(MODEL.MClassInfo model);
        /// <summary>
        /// 分页列表一个信息
        /// </summary>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="fiter"></param>
        /// <returns></returns>
         string GetAllInfo(string start, string limit, string fiter);
        /// <summary>
        /// 取得一条信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         string GetinfoById(string id);
        /// <summary>
        /// 删除一条信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         bool DeleteById(string id);
        /// <summary>
        /// 根据父id取得内容
        /// </summary>
        /// <param name="Pid"></param>
        /// <returns></returns>
         string GetInfoByPid(string Pid);
        /// <summary>
        /// 取得当前节点深度
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         int GetDepth(string id);
    }
}
