fix: 修正 permission 表列名 — permcode→path, permname→name
对照 rbac/models/permission.json 确认: - path (原 permcode) - name (原 permname) - permtype ✓ - id ✓
This commit is contained in:
parent
c0c598ff15
commit
2068b066e3
@ -41,12 +41,12 @@ async def main():
|
|||||||
)
|
)
|
||||||
if len(r) == 0:
|
if len(r) == 0:
|
||||||
await sor.sqlExe(
|
await sor.sqlExe(
|
||||||
'''insert into permission (id, path, permname, permtype)
|
'''insert into permission (id, path, name, permtype)
|
||||||
values (${id}$, ${path}$, ${permname}$, ${permtype}$)''',
|
values (${id}$, ${path}$, ${name}$, ${permtype}$)''',
|
||||||
{
|
{
|
||||||
'id': getID(),
|
'id': getID(),
|
||||||
'path': path,
|
'path': path,
|
||||||
'permname': path,
|
'name': path,
|
||||||
'permtype': role,
|
'permtype': role,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user