menu
This commit is contained in:
@@ -35,7 +35,7 @@ func GetMenu(db *DaoDB, name string, level int, userID string) (menus []*model.M
|
||||
|
||||
func GetMenuWithUser(db *DaoDB, name string, level int, userID string) (menus []*model.Menu, err error) {
|
||||
sql := `
|
||||
SELECT b.* FROM (
|
||||
SELECT DISTINCT b.* FROM (
|
||||
SELECT a.id,a.parent_id
|
||||
FROM menu a
|
||||
JOIN user_role b ON b.user_id = ?
|
||||
|
||||
Reference in New Issue
Block a user