Refactor some reflection

This commit is contained in:
Jamie Curnow
2023-07-24 13:42:50 +10:00
parent d437c6b743
commit aae95798b2
20 changed files with 287 additions and 300 deletions

View File

@ -10,11 +10,11 @@ import (
"npm/internal/acme"
"npm/internal/config"
"npm/internal/database"
"npm/internal/entity"
"npm/internal/entity/certificateauthority"
"npm/internal/entity/dnsprovider"
"npm/internal/entity/user"
"npm/internal/logger"
"npm/internal/model"
"npm/internal/serverevents"
"npm/internal/types"
"npm/internal/util"
@ -44,7 +44,7 @@ const (
// Model is the model
type Model struct {
entity.ModelBase
model.ModelBase
UserID uint `json:"user_id" gorm:"column:user_id" filter:"user_id,integer"`
Type string `json:"type" gorm:"column:type" filter:"type,string"`
CertificateAuthorityID types.NullableDBUint `json:"certificate_authority_id" gorm:"column:certificate_authority_id" filter:"certificate_authority_id,integer"`