wireguard-dashboard/http/param/setting.go

24 lines
1.0 KiB
Go
Raw Normal View History

2024-03-14 15:23:16 +08:00
package param
// SetSetting
// @description: 设置
type SetSetting struct {
2024-03-14 16:00:28 +08:00
Code string `json:"code" form:"code" binding:"required"` // 设置的唯一编码
Data string `json:"data" form:"data" binding:"required"` // 数据
Describe string `json:"describe" form:"describe" binding:"omitempty"` // 描述
}
// SetServerGlobal
// @description: 设置服务端全局配置
type SetServerGlobal struct {
Data struct {
EndpointAddress string `json:"endpointAddress" binding:"required"` // 服务公网IP
DnsServer []string `json:"dnsServer" binding:"required"` // DNS列表
MTU int `json:"MTU" binding:"required"`
PersistentKeepalive int `json:"persistentKeepalive" binding:"omitempty"`
FirewallMark string `json:"firewallMark" binding:"omitempty"`
Table string `json:"table" binding:"omitempty"`
ConfigFilePath string `json:"configFilePath" binding:"required"` // 配置文件对外输出目录
} `json:"data"`
2024-03-14 15:23:16 +08:00
}