fix struct tags (#7)

This commit is contained in:
UUBulb
2024-11-16 20:57:03 +08:00
committed by GitHub
parent 8640cbbf42
commit 288e1b75e9
20 changed files with 87 additions and 87 deletions

View File

@@ -2,8 +2,8 @@ package model
type NAT struct {
Common
Name string
ServerID uint64
Host string
Domain string `gorm:"unique"`
Name string `json:"name"`
ServerID uint64 `json:"server_id"`
Host string `json:"host"`
Domain string `json:"domain" gorm:"unique"`
}