20 lines
406 B
Go
20 lines
406 B
Go
package gmodel
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// ldap_role_menus
|
|
type LdapRoleMenus struct {
|
|
MenuId *int64 `gorm:"default:0;" json:"menu_id"` // 菜单id
|
|
RoleId *int64 `gorm:"default:0;" json:"role_id"` // 角色id
|
|
}
|
|
type LdapRoleMenusModel struct {
|
|
db *gorm.DB
|
|
name string
|
|
}
|
|
|
|
func NewLdapRoleMenusModel(db *gorm.DB) *LdapRoleMenusModel {
|
|
return &LdapRoleMenusModel{db: db, name: "ldap_role_menus"}
|
|
}
|