package model type SettingRoleMenu struct { Id uint `gorm:"primaryKey"` RoleId uint // 角色id MenuId uint // 菜单id }