feat:菜单管理-查

This commit is contained in:
zy7y
2022-09-15 23:54:20 +08:00
parent 1e84782603
commit 65f1d7d2bc
7 changed files with 203 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ async def get_role_menus(rid: int):
db = connections.get("default")
return await db.execute_query_dict(
"""
select m.id, m.name, m.meta, m.path, m.type, m.component, m.pid, m.identifier
select m.id, m.name, m.meta, m.path, m.type, m.component, m.pid, m.identifier, m.api, m.method
FROM sys_menu as m, sys_role_menu WHERE m.id = sys_role_menu.mid
AND sys_role_menu.rid = (?) AND sys_role_menu.`status` = 1""",
[rid],

Binary file not shown.

Binary file not shown.

Binary file not shown.