некоторое исправление

This commit is contained in:
Дмитрий Саенко 2025-10-22 14:03:46 +03:00
parent b687487aff
commit 0faf959c49

View file

@ -121,11 +121,11 @@ type Client struct {
}
type Server struct {
Id int `json:"id" gorm:"primaryKey;autoIncrement" form:"id"`
Name string `json:"name" gorm:"unique;not null" form:"name"`
Address string `json:"address" gorm:"not null" form:"address"`
Port int `json:"port" gorm:"not null" form:"port"`
SecretWebPath string `json:"secretWebPath" gorm:"not null" form:"secretWebPath"`
APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"`
Enable bool `json:"enable" gorm:"default:true" form:"enable"`
Id int `json:"id" gorm:"primaryKey;autoIncrement" form:"id"`
Name string `json:"name" gorm:"unique;not null" form:"name"`
Address string `json:"address" gorm:"not null" form:"address"`
Port int `json:"port" gorm:"not null" form:"port"`
SecretWebPath string `json:"secretWebPath" form:"secretWebPath"`
APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"`
Enable bool `json:"enable" gorm:"default:true" form:"enable"`
}