用户添加全新啊

This commit is contained in:
苏尹岚
2020-09-28 10:43:48 +08:00
parent 58e6775125
commit 98c0b852af
3 changed files with 17 additions and 11 deletions

View File

@@ -11,8 +11,8 @@ import (
"git.rosy.net.cn/jx-callback/business/model/dao"
)
func GetMenu(ctx *jxcontext.Context) (menus []*model.Menu, err error) {
return dao.GetMenu(dao.GetDB(), "", 0)
func GetMenu(ctx *jxcontext.Context, userID string) (menus []*model.Menu, err error) {
return dao.GetMenu(dao.GetDB(), "", 0, userID)
}
func AddMenu(ctx *jxcontext.Context, menu *model.Menu) (err error) {