后台格式规范化 引入casbin做鉴权
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"admin": {
|
||||
"username": "root",
|
||||
"password": "Aa@6447985",
|
||||
"path": "127.0.0.1:3306",
|
||||
"dbname": "qmplus",
|
||||
"config": "charset=utf8&parseTime=True&loc=Local"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[request_definition]
|
||||
r = sub, obj, act
|
||||
|
||||
[policy_definition]
|
||||
p = sub, obj, act
|
||||
|
||||
[role_definition]
|
||||
g = _, _
|
||||
|
||||
[policy_effect]
|
||||
e = some(where (p.eft == allow))
|
||||
|
||||
[matchers]
|
||||
m = r.sub == p.sub && ParamsMatch(r.obj, p.obj) && r.act == p.act
|
||||
Reference in New Issue
Block a user