IBll.cs 1.93 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);
        BllResult<List<Config>> GetAllConfig();
        void Combine(List<MenuOperation> list, List<MenuOperation> menuOperations);
        BllResult<Role> InsertRoleAndMenuOperations(Role currentRole, List<MenuOperation> list);
        BllResult<List<T>> GetCommonModelByCondition<T>(string v);
        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);
        BllResult DeleteConfigByIds(List<int> list);
        BllResult DeleteRoleByIds(List<int> list);
        BllResult<int?> SaveCommonModel<T>(T model);
        BllResult UpdateCommonModel<T>(T currentConfig);
        BllResult DeleteDictByIds(List<int> list);
        BllResult DeleteCommonModelByIds<T>(List<int> list);
        BllResult DeleteEuipmentTypeByIds(List<int> list);
        BllResult DeleteEquipmentTypePropTemplateByIds(List<int> list);
    }
}