using System; using System.Collections.Generic; using System.Linq; using System.Text; using CY.IBaseDAL; using CY.Model; namespace CY.IDAL { /// /// 角色-数据库操作接口 /// public interface ISys_Permissions_RoleDAL : ICommonDAL, IPaging, IGetAllModel { /// ///查询全部角色 /// /// IEnumerable SelectList(); /// /// 根据编号查询单个角色 /// /// /// Sys_Permissions_Role SelectModel(int? Keyid); /// /// 编辑角色权限 /// /// /// bool EditMenusRole(int? Roleid, Dictionary MenusJionRole); /// /// 编辑会员权限 /// /// /// /// /// bool EditMenusRole(int? Roleid, Dictionary MenusJionRole, Guid MemberId); /// /// 删除角色以及角色的权限 /// /// /// bool DeleteRole(Infrastructure.Domain.IAggregateRoot model); /// /// 根据角色获取一级菜单 /// /// 角色编号 /// List MenusOneList(int? RoleId); /// /// 根据一级菜单获取二级菜单 /// /// 一级菜单 /// List MenusTwoList(int? MenuIdOne, int? RoleId); /// /// 根据二级菜单获取三级菜单 /// /// 二级菜单 /// List MenusThreeList(int? MenuIdTwo, int? RoleId); /// /// 设置默认厂商角色 /// /// 角色编号 /// bool SetDefaulFirmRole(int? Keyid); /// /// 设置默认网店角色 /// /// 角色编号 /// bool SetDefaulShopRole(int? Keyid); /// /// 设置默认买家角色 /// /// 角色编号 /// bool SetDefaulBuyerRole(int? Keyid); /// /// 根据会员类型获取默认角色 /// /// /// Sys_Permissions_Role SelectModelByType(string membertype); /// /// 根据菜单编号获取不存在此菜单的角色 /// /// /// /// IEnumerable HasRoleByMenuId(int? Menuid, string MemberTypes); /// /// 根据上级菜单编号获取下级全部菜单 /// /// /// List SelectNextMenusListByMenuId(int? MenuId); /// /// 更新或添加用例时,自动关联到用户 /// /// /// /// bool UpdateCaseToMember(int? MenuId, int? CaseId); } }