using LeaRun.Application.Entity.BaseManage;
using LeaRun.Util.WebControl;
using System.Collections.Generic;
namespace LeaRun.Application.IService.BaseManage
{
    /// 
    /// 版 本
    /// Copyright (c) 2013-2016 上海力软信息技术有限公司
    /// 创建人:佘赐雄
    /// 日 期:2015.11.4 14:31
    /// 描 述:用户组管理
    /// 
    public interface IUserGroupService
    {
        #region 获取数据
        /// 
        /// 用户组列表
        /// 
        /// 
        IEnumerable GetList();
        /// 
        /// 用户组列表
        /// 
        /// 分页
        /// 查询参数
        /// 
        IEnumerable GetPageList(Pagination pagination, string queryJson);
        /// 
        /// 用户组列表(ALL)
        /// 
        /// 
        IEnumerable GetAllList();
        /// 
        /// 用户组实体
        /// 
        /// 主键值
        /// 
        RoleEntity GetEntity(string keyValue);
        #endregion
        #region 验证数据
        /// 
        /// 组编号不能重复
        /// 
        /// 编号
        /// 主键
        /// 
        bool ExistEnCode(string enCode, string keyValue);
        /// 
        /// 组名称不能重复
        /// 
        /// 名称
        /// 主键
        /// 
        bool ExistFullName(string fullName, string keyValue);
        #endregion
        #region 提交数据
        /// 
        /// 删除用户组
        /// 
        /// 主键
        void RemoveForm(string keyValue);
        /// 
        /// 保存用户组表单(新增、修改)
        /// 
        /// 主键值
        /// 用户组实体
        /// 
        void SaveForm(string keyValue, RoleEntity userGroupEntity);
        #endregion
    }
}