IBll.cs
2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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<int> GetCommonModelCount<T>(string sql);
BllResult<User> UpdateUserWithRoles(User currentUser, List<int> RoleIds);
/// <summary>
/// 按照字典编码查找完整字典
/// </summary>
/// <param name="v"></param>
/// <returns></returns>
BllResult<Dict> GetDictWithDetails(string v);
BllResult DeleteConfigByIds(List<int> list);
BllResult DeleteRoleByIds(List<int> list);
BllResult<int?> SaveCommonModel<T>(T model);
BllResult UpdateCommonModel<T>(T model);
BllResult DeleteDictByIds(List<int> list);
BllResult DeleteCommonModelByIds<T>(List<int> list);
BllResult DeleteEuipmentTypeByIds(List<int> list);
BllResult DeleteEquipmentTypePropTemplateByIds(List<int> list);
BllResult DeleteEuipmentByIds(List<int> ids);
BllResult SyncEquipmentProp(int? id);
BllResult<List<T>> GetCommonModeByPageCondition<T>(int pageNumber, int pageSize, string condition, string orderBy);
}
}