fusenapi/model/gmodel/ldap_role_menus_gen.go
laodaming f279c4edc9 fix
2023-11-13 17:59:46 +08:00

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