fusenapi/model/gmodel/ldap_role_menus_gen.go
laodaming d6a25673bc fix
2023-11-10 15:24:25 +08:00

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"}
}