fusenapi/model/gmodel/ldap_department_users_gen.go

20 lines
470 B
Go
Raw Normal View History

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