forked from liaozb/APIJSON.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.json
More file actions
47 lines (47 loc) · 1.14 KB
/
appsettings.json
File metadata and controls
47 lines (47 loc) · 1.14 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
{
"ConnectionStrings": {
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite,3:Oracle,4:PostgreSQL
"ConnectionString": "Server=localhost; Database=test; User Id=root;Password=password;charset=UTF8;"
},
"Authentication": {
"JwtBearer": {
"IsEnabled": "true",
"SecurityKey": "APIJSON.NET_C421AAEE0D114E9C",
"Issuer": "APIJSON.NET",
"Audience": "APIJSON.NET"
}
},
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"RoleList": [
{
"name": "role1",//权限名称 唯一
"select": {//查询权限
"table": [ "moment", "User", "Comment" ],//可操作的表
"column": [ "*", "*", "*" ]//可操作的字段
},
"update": { //修改权限
"table": [ "moment", "User", "Comment" ],
"column": [ "*", "*", "*" ]
},
"insert": { //添加权限
"table": [ "moment", "User", "Comment" ],
"column": [ "*", "*", "*" ]
},
"delete": { //删除权限
"table": [ "moment", "User", "Comment" ]
}
},
{
"name": "role2",
"select": {
"table": [ "monent" ],
"col": [ "*" ]
}
}
]
}