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
48 lines (47 loc) · 1.22 KB
/
appsettings.json
File metadata and controls
48 lines (47 loc) · 1.22 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
{
"ConnectionStrings": {
"DbType": 1, //0:MySql,1:SqlServer,2:Sqlite
"ConnectionString": "Server=LIAOZENGBO\\SQL2012; Database=Testdb; User Id=sa;Password=sa123;"
//"ConnectionString": "Server=119.29.9.25;Port=3306;Database=test;Uid=root;Pwd=1q,2w.3e?;CharSet=UTF8;"
},
"Authentication": {
"JwtBearer": {
"IsEnabled": "true",
"SecurityKey": "APIJSON.NET_C421AAEE0D114E9C",
"Issuer": "APIJSON.NET",
"Audience": "APIJSON.NET"
}
},
"RoleList": [
{
"name": "role1", //权限名称 唯一
"select": { //查询权限
"table": [ "moment", "User", "Comment" ], //可操作的表
"column": [ "*", "*", "*" ], //可操作的字段
"where": []
},
"update": { //修改权限
"table": [ "moment", "User", "Comment" ],
"column": [ "*", "*", "*" ]
},
"insert": { //添加权限
"table": [ "moment", "User", "Comment" ],
"column": [ "*", "*", "*" ]
},
"delete": { //删除权限
"table": [ "moment", "User", "Comment" ]
}
},
{
"name": "role2",
"select": {
"table": [ "monent" ],
"column": [ "*" ]
}
}
],
"tablempper": //别名表映射
{
"user": "apijson_user"
}
}