mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-11-03 19:52:14 +08:00
75 lines
3.8 KiB
Go
75 lines
3.8 KiB
Go
package request
|
|
|
|
import "SamWaf/model/common/request"
|
|
|
|
type WafHostAddReq struct {
|
|
Code string `json:"code"` //唯一编码
|
|
Host string `json:"host"` //域名
|
|
Port int `json:"port"` //端口
|
|
Ssl int `json:"ssl"` //是否是ssl
|
|
REMOTE_SYSTEM string `json:"remote_system"` //是宝塔 phpstudy等
|
|
REMOTE_APP string `json:"remote_app"` //是什么类型的应用
|
|
Remote_host string `json:"remote_host"` //远端域名
|
|
Remote_ip string `json:"remote_ip"` //远端指定IP
|
|
Remote_port int `json:"remote_port"` //远端端口
|
|
REMARKS string `json:"remarks"` //备注
|
|
Certfile string `json:"certfile"` // 证书文件
|
|
Keyfile string `json:"keyfile"` // 密钥文件
|
|
DEFENSE_JSON string `json:"defense_json"` //自身防御 json
|
|
START_STATUS int `json:"start_status"` //启动状态
|
|
EXCLUDE_URL_LOG string `json:"exclude_url_log"` //排除的url开头的数据 换行隔开
|
|
IsEnableLoadBalance int `json:"is_enable_load_balance"` //是否激活负载 1 激活 非1 没有激活
|
|
LoadBalanceStage int `json:"load_balance_stage"` //负载策略
|
|
UnrestrictedPort int `json:"unrestricted_port"` //不限来源匹配端口 0 限制 1,不限制
|
|
BindSslId string `json:"bind_ssl_id"` //绑定SSL的ID
|
|
AutoJumpHTTPS int `json:"auto_jump_https"` //是否自动跳转https 0 不自动 1 强制80跳转https
|
|
|
|
}
|
|
type WafHostDelReq struct {
|
|
CODE string `json:"code"`
|
|
}
|
|
|
|
type WafHostDetailReq struct {
|
|
CODE string `json:"code"`
|
|
}
|
|
|
|
type WafHostEditReq struct {
|
|
CODE string `json:"code"`
|
|
Host string `json:"host"` //域名
|
|
Port int `json:"port"` //端口
|
|
Ssl int `json:"ssl"` //是否是ssl
|
|
REMOTE_SYSTEM string `json:"remote_system"` //是宝塔 phpstudy等
|
|
REMOTE_APP string `json:"remote_app"` //是什么类型的应用
|
|
Remote_host string `json:"remote_host"` //远端域名
|
|
Remote_ip string `json:"remote_ip"` //远端指定IP
|
|
Remote_port int `json:"remote_port"` //远端端口
|
|
REMARKS string `json:"remarks"` //备注
|
|
Certfile string `json:"certfile"` // 证书文件
|
|
Keyfile string `json:"keyfile"` // 密钥文件
|
|
DEFENSE_JSON string `json:"defense_json"` //自身防御 json
|
|
START_STATUS int `json:"start_status"` //启动状态
|
|
EXCLUDE_URL_LOG string `json:"exclude_url_log"` //排除的url开头的数据 换行隔开
|
|
IsEnableLoadBalance int `json:"is_enable_load_balance"` //是否激活负载 1 激活 非1 没有激活
|
|
LoadBalanceStage int `json:"load_balance_stage"` //负载策略
|
|
UnrestrictedPort int `json:"unrestricted_port"` //不限来源匹配端口 0 限制 1,不限制
|
|
BindSslId string `json:"bind_ssl_id"` //绑定SSL的ID
|
|
AutoJumpHTTPS int `json:"auto_jump_https"` //是否自动跳转https 0 不自动 1 强制80跳转https
|
|
|
|
}
|
|
|
|
type WafHostGuardStatusReq struct {
|
|
CODE string `json:"code"`
|
|
GUARD_STATUS int `json:"guard_status"` //防御状态
|
|
}
|
|
|
|
type WafHostSearchReq struct {
|
|
Code string `json:"code" ` //主机码
|
|
REMARKS string `json:"remarks"` //备注
|
|
request.PageInfo
|
|
}
|
|
|
|
type WafHostStartStatusReq struct {
|
|
CODE string `json:"code"`
|
|
START_STATUS int `json:"start_status"` //启动状态
|
|
}
|