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,12 +2,12 @@ package upstreamserver
import (
"npm/internal/database"
"npm/internal/entity"
"npm/internal/model"
)
// Model is the model
type Model struct {
entity.ModelBase
model.ModelBase
UpstreamID uint `json:"upstream_id" gorm:"column:upstream_id" filter:"upstream_id,integer"`
Server string `json:"server" gorm:"column:server" filter:"server,string"`
Weight int `json:"weight" gorm:"column:weight" filter:"weight,integer"`