forked from liaozb/APIJSON.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIIdentityService.cs
More file actions
32 lines (29 loc) · 829 Bytes
/
Copy pathIIdentityService.cs
File metadata and controls
32 lines (29 loc) · 829 Bytes
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
using APIJSON.NET.Models;
namespace APIJSON.NET.Services
{
public interface IIdentityService
{
/// <summary>
/// 获取当前用户id
/// </summary>
/// <returns></returns>
string GetUserIdentity();
/// <summary>
/// 获取当前用户权限组名称
/// </summary>
/// <returns></returns>
string GetUserRoleName();
/// <summary>
/// 获取当前用户权限
/// </summary>
/// <returns></returns>
Role GetRole();
/// <summary>
/// 获取当前表的可查询字段
/// </summary>
/// <param name="table"></param>
/// <returns></returns>
(bool, string) GetSelectRole(string table);
bool ColIsRole(string col, string[] selectrole);
}
}