Refactor some reflection

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

No files matched your search

+2 -2
View File
@@ -4,14 +4,14 @@ import (
"strings"
"npm/internal/database"
"npm/internal/entity"
"npm/internal/model"
"gorm.io/datatypes"
)
// Model is the model
type Model struct {
entity.ModelBase
model.ModelBase
Name string `json:"name" gorm:"column:name" filter:"name,string"`
Description string `json:"description" gorm:"column:description" filter:"description,string"`
Value datatypes.JSON `json:"value" gorm:"column:value"`