fusenapi/model/gmodel/ldap_user_roles_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_user_roles
type LdapUserRoles struct {
RoleId *int64 `gorm:"default:0;" json:"role_id"` // 角色id
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
}
type LdapUserRolesModel struct {
db *gorm.DB
name string
}
func NewLdapUserRolesModel(db *gorm.DB) *LdapUserRolesModel {
return &LdapUserRolesModel{db: db, name: "ldap_user_roles"}
}