mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-09-17 16:42:18 +08:00
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package response
|
|
|
|
// WafVpConfigIpWhitelistGetResp IP白名单获取响应
|
|
type WafVpConfigIpWhitelistGetResp struct {
|
|
IpWhitelist string `json:"ip_whitelist"` // IP白名单,多个IP用逗号分隔
|
|
}
|
|
|
|
// WafVpConfigSslStatusGetResp SSL状态获取响应
|
|
type WafVpConfigSslStatusGetResp struct {
|
|
SslEnable bool `json:"ssl_enable"` // 是否启用SSL
|
|
HasCert bool `json:"has_cert"` // 是否已上传证书
|
|
CertExpireAt string `json:"cert_expire_at"` // 证书过期时间
|
|
CertDomain string `json:"cert_domain"` // 证书域名
|
|
CertContent string `json:"cert_content"` // 证书内容
|
|
KeyContent string `json:"key_content"` // 私钥内容
|
|
}
|
|
|
|
// WafVpConfigSecurityEntryGetResp 安全路径入口获取响应
|
|
type WafVpConfigSecurityEntryGetResp struct {
|
|
EntryEnable bool `json:"entry_enable"` // 是否启用安全路径
|
|
EntryPath string `json:"entry_path"` // 安全路径码
|
|
}
|
|
|
|
// WafVpConfigNoticeTitleGetResp 通知标题前缀获取响应
|
|
type WafVpConfigNoticeTitleGetResp struct {
|
|
NoticeTitle string `json:"notice_title"` // 通知消息标题前缀
|
|
}
|
|
|
|
// WafVpConfigDomainWhitelistGetResp 域名白名单获取响应
|
|
type WafVpConfigDomainWhitelistGetResp struct {
|
|
DomainWhitelist string `json:"domain_whitelist"`
|
|
}
|