fusenapi/model/gmodel/ldap_role_menus_gen.go

20 lines
404 B
Go
Raw Normal View History

2023-11-13 09:59:46 +00:00
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"}
}