1Panel/agent/app/model/firewall.go
ssongliu 46fda7ecfb
Some checks failed
sync2gitee / repo-sync (push) Failing after -7m49s
fix: 移除 gorm 类型参数 (#6123)
2024-08-14 10:43:32 +08:00

21 lines
617 B
Go

package model
type Firewall struct {
BaseModel
Type string `gorm:"not null" json:"type"`
Port string `gorm:"not null" json:"port"`
Protocol string `gorm:"not null" json:"protocol"`
Address string `gorm:"not null" json:"address"`
Strategy string `gorm:"not null" json:"strategy"`
Description string `gorm:"not null" json:"description"`
}
type Forward struct {
BaseModel
Protocol string `gorm:"not null" json:"protocol"`
Port string `gorm:"not null" json:"port"`
TargetIP string `gorm:"not null" json:"targetIP"`
TargetPort string `gorm:"not null" json:"targetPort"`
}