fusenapi/model/gmodel/ldap_user_group_gen.go

20 lines
414 B
Go
Raw Normal View History

2023-11-15 06:42:14 +00:00
package gmodel
import (
"gorm.io/gorm"
)
// ldap_user_group 用户权限分组表
type LdapUserGroup struct {
2023-11-16 08:57:29 +00:00
GroupId *int64 `gorm:"default:0;" json:"group_id"` //
UserId *int64 `gorm:"default:0;" json:"user_id"` //
2023-11-15 06:42:14 +00:00
}
type LdapUserGroupModel struct {
db *gorm.DB
name string
}
func NewLdapUserGroupModel(db *gorm.DB) *LdapUserGroupModel {
return &LdapUserGroupModel{db: db, name: "ldap_user_group"}
}