新增获取用户按钮权限
This commit is contained in:
@@ -2,10 +2,10 @@ package model
|
||||
|
||||
// AdminRoleMenu 后台-角色-菜单表
|
||||
type AdminRoleMenu struct {
|
||||
RoleID int64 `gorm:"column:role_id;type:bigint(19);primary_key;comment:权限id" json:"role_id"`
|
||||
MenuID int64 `gorm:"column:menu_id;type:bigint(19);primary_key;comment:菜单id" json:"menu_id"`
|
||||
Menu AdminMenu `gorm:"foreignKey:MenuID" json:"menu"`
|
||||
Role AdminRole `gorm:"foreignKey:RoleID" json:"role"`
|
||||
RoleID int64 `gorm:"column:role_id;type:bigint(19);primary_key;comment:权限id" json:"role_id"`
|
||||
MenuID int64 `gorm:"column:menu_id;type:bigint(19);primary_key;comment:菜单id" json:"menu_id"`
|
||||
Menu *AdminMenu `gorm:"foreignKey:MenuID" json:"menu"`
|
||||
Role *AdminRole `gorm:"foreignKey:RoleID" json:"role"`
|
||||
}
|
||||
|
||||
func (m *AdminRoleMenu) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user