RightControl.Service/Permissions/MenuActionService.cs

(完整代码) 1KB

using RightControl.IRepository;
using RightControl.IService;
using RightControl.Model;
using System.Collections.Generic;

namespace RightControl.Service
{
    public class MenuActionService : BaseService<MenuActionModel>, IMenuActionService
    {
        public IMenuActionRepository repository { get; set; }
        /// <summary>
        /// 保存菜单权限配置
        /// </summary>
        /// <param name="entitys">菜单权限列表</param>
        /// <param name="menuId"></param>
        /// <returns></returns>
        public int SavePermission(IEnumerable<MenuActionModel> entitys, int menuId)
        {
            return repository.SavePermission(entitys, menuId);
        }
        /// <summary>
        /// 这里这个方法没意义,仅仅实现接口
        /// </summary>
        /// <param name="filter"></param>
        /// <param name="pageInfo"></param>
        /// <returns></returns>
        public dynamic GetListByFilter(MenuActionModel filter, PageInfo pageInfo)
        {
            return GetListByFilter(filter, pageInfo, "");
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。