mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
结构调整添加cmd
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ package models
|
||||
import (
|
||||
"fmt"
|
||||
orm "go-admin/database"
|
||||
"go-admin/pkg/utils"
|
||||
"go-admin/tools"
|
||||
)
|
||||
|
||||
type RoleMenu struct {
|
||||
@@ -134,7 +134,7 @@ func (rm *RoleMenu) Insert(roleId int, menuId []int) (bool, error) {
|
||||
}
|
||||
|
||||
func (rm *RoleMenu) Delete(RoleId string, MenuID string) (bool, error) {
|
||||
rm.RoleId, _ = utils.StringToInt(RoleId)
|
||||
rm.RoleId, _ = tools.StringToInt(RoleId)
|
||||
table := orm.Eloquent.Table("sys_role_menu").Where("role_id = ?", RoleId)
|
||||
if MenuID != "" {
|
||||
table = table.Where("menu_id = ?", MenuID)
|
||||
|
||||
Reference in New Issue
Block a user