20 lines
421 B
Go
20 lines
421 B
Go
|
package gmodel
|
||
|
|
||
|
import (
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
// ldap_group_menus 权限分组菜单表
|
||
|
type LdapGroupMenus struct {
|
||
|
MenuId *int64 `gorm:"default:0;" json:"menu_id"` //
|
||
|
GroupId *int64 `gorm:"default:0;" json:"group_id"` //
|
||
|
}
|
||
|
type LdapGroupMenusModel struct {
|
||
|
db *gorm.DB
|
||
|
name string
|
||
|
}
|
||
|
|
||
|
func NewLdapGroupMenusModel(db *gorm.DB) *LdapGroupMenusModel {
|
||
|
return &LdapGroupMenusModel{db: db, name: "ldap_group_menus"}
|
||
|
}
|