2024-03-08 16:30:29 +08:00
|
|
|
package param
|
|
|
|
|
|
|
|
type SaveServer struct {
|
2024-05-24 15:19:26 +08:00
|
|
|
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"` // 监听端口
|
2024-06-04 17:31:45 +08:00
|
|
|
PrivateKey string `json:"privateKey" form:"privateKey"` // 私钥
|
|
|
|
PublicKey string `json:"publicKey" form:"publicKey"` // 密钥
|
2024-05-24 15:19:26 +08:00
|
|
|
PostUpScript string `json:"postUpScript" form:"postUpScript" binding:"omitempty"`
|
|
|
|
PreDownScript string `json:"preDownScript" form:"preDownScript" binding:"omitempty"`
|
|
|
|
PostDownScript string `json:"postDownScript" form:"postDownScript" binding:"omitempty"`
|
2024-03-08 16:30:29 +08:00
|
|
|
}
|