{
"ConnectionStrings": {
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite
"ConnectionString": "Server=192.168.2.25;Database=yunwei;Uid=root;Pwd=xmjk;Port=3306;Character Set=utf8;"
//"ConnectionString": "Server=119.29.9.25;Port=3306;Database=test;Uid=root;Pwd=1q,2w.3e?;CharSet=UTF8;"
},
"CorsUrls": "http://localhost:5000,http://localhost5001",
"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",
"org": "web_organization"
}
}