1Panel/agent/app/model/firewall.go

22 lines
617 B
Go
Raw Normal View History

2024-07-23 14:48:37 +08:00
package model
type Firewall struct {
BaseModel
2024-08-14 10:43:32 +08:00
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"`
2024-07-23 14:48:37 +08:00
}
type Forward struct {
BaseModel
2024-08-14 10:43:32 +08:00
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"`
2024-07-23 14:48:37 +08:00
}