fusenapi/model/gmodel/ldap_user_gen.go
laodaming f8b8d98723 fix
2023-11-16 16:57:29 +08:00

17 lines
337 B
Go

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