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