8 lines
172 B
Python
8 lines
172 B
Python
|
from models import MenuModel
|
||
|
from schemas.menu import MenuIn
|
||
|
|
||
|
|
||
|
async def insert_menu(menu: MenuIn):
|
||
|
"""新增菜单"""
|
||
|
return await MenuModel.create(**menu.dict())
|