This commit is contained in:
suyl
2021-09-02 16:35:48 +08:00
parent e160982c49
commit ec971561bb
3 changed files with 36 additions and 2 deletions

View File

@@ -142,6 +142,6 @@ func GetMenus(c *gin.Context) (menus []*model.Menu, err error) {
return dao.GetMenus(globals.GetDB())
}
func GetMenuDetail(c *gin.Context, id int) (menus []*model.Menu, err error) {
return
func GetMenuDetail(c *gin.Context, id int) (menu *model.MenuDetail, err error) {
return dao.GetMenuDetail(globals.GetDB(), id)
}