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

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