IBll.cs 1.37 KB
using HHECS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHECS.Bll
{
    public interface IBll
    {
        BllResult<User> GetUserWithRoles(string userCode, string password);

        BllResult<List<MenuOperation>> FindMenuOperation(List<Role> roles);

        BllResult<List<MenuOperation>> GetAllMenuOperation();
        BllResult<MenuOperation> SaveMenuOperation(MenuOperation currentMenuOperation);
        BllResult UpdateMenuOperation(MenuOperation currentMenuOperation);
        BllResult DeleteMenuOperationByIds(List<int> ids);
        BllResult<List<Role>> GetAllRole();
        BllResult<Role> GetRoleById(int value);
        void GetMenuOperationIds(List<MenuOperation> list, List<MenuOperation> menuOperations, List<int> ids);
        void Combine(List<MenuOperation> list, List<MenuOperation> menuOperations);
        BllResult<Role> InsertRoleAndMenuOperations(Role currentRole, List<MenuOperation> list);
        BllResult<Role> UpdateRoleAndMenuOperations(Role currentRole, List<MenuOperation> list);
        BllResult<List<User>> GetUserByCondition(string sql);
        BllResult SetUserDisable(List<int?> list,int enable);
        BllResult<User> SaveUserWithRoles(User currentUser, List<int> RoleIds);
        BllResult<User> UpdateUserWithRoles(User currentUser, List<int> RoleIds);
    }
}