fusenapi/model/gmodel/ldap_user_gen.go

17 lines
337 B
Go
Raw Normal View History

2023-11-16 08:57:29 +00:00
package gmodel
import (
"gorm.io/gorm"
)
// ldap_user ldap_用户id递增表
type LdapUser struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
}
type LdapUserModel struct {
db *gorm.DB
name string
}
func NewLdapUserModel(db *gorm.DB) *LdapUserModel { return &LdapUserModel{db: db, name: "ldap_user"} }