20 lines
470 B
Go
20 lines
470 B
Go
package gmodel
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// ldap_department_users 部门用户表
|
|
type LdapDepartmentUsers struct {
|
|
DepartmentId *int64 `gorm:"default:0;" json:"department_id"` //
|
|
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
|
}
|
|
type LdapDepartmentUsersModel struct {
|
|
db *gorm.DB
|
|
name string
|
|
}
|
|
|
|
func NewLdapDepartmentUsersModel(db *gorm.DB) *LdapDepartmentUsersModel {
|
|
return &LdapDepartmentUsersModel{db: db, name: "ldap_department_users"}
|
|
}
|