feat: 动态菜单

This commit is contained in:
zy7y
2022-09-13 16:53:31 +08:00
parent 9ce271d691
commit 0417ceb6d4
28 changed files with 807 additions and 824 deletions

View File

@@ -67,3 +67,8 @@ async def get_apis(pk: int):
AND srm.rid = (?) and m.status != 9""",
[pk],
)
async def put_menu(pk: int, data):
"""更新菜单"""
return await MenuModel.filter(id=pk).update(**data.dict())