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

@ -2,14 +2,14 @@ package jwt
import (
"npm/internal/database"
"npm/internal/entity"
"npm/internal/model"
)
var currentKeys KeysModel
// KeysModel is the model
type KeysModel struct {
entity.ModelBase
model.ModelBase
PublicKey string `gorm:"column:public_key"`
PrivateKey string `gorm:"column:private_key"`
}