wireguard-dashboard/http/param/server.go
coward 42b4334d07
All checks were successful
continuous-integration/drone/tag Build is passing
🐛修复了bug
2024-06-04 17:31:45 +08:00

13 lines
766 B
Go

package param
type SaveServer struct {
Id string `json:"id" form:"id" binding:"omitempty"` // id
IpScope string `json:"ipScope" form:"ipScope" binding:"required"` // 内网ip范围段
ListenPort int `json:"listenPort" form:"listenPort" binding:"required"` // 监听端口
PrivateKey string `json:"privateKey" form:"privateKey"` // 私钥
PublicKey string `json:"publicKey" form:"publicKey"` // 密钥
PostUpScript string `json:"postUpScript" form:"postUpScript" binding:"omitempty"`
PreDownScript string `json:"preDownScript" form:"preDownScript" binding:"omitempty"`
PostDownScript string `json:"postDownScript" form:"postDownScript" binding:"omitempty"`
}