mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-10-31 02:01:44 +08:00
37 lines
1.6 KiB
Go
37 lines
1.6 KiB
Go
package request
|
|
|
|
import "SamWaf/model/common/request"
|
|
|
|
type BatchTaskAddReq struct {
|
|
BatchTaskName string `json:"batch_task_name"` //任务名
|
|
BatchType string `json:"batch_type"` //任务类型
|
|
BatchHostCode string `json:"batch_host_code"` //网站唯一码 是否绑定到某个主机上
|
|
BatchSourceType string `json:"batch_source_type"` //来源类型(local,url)
|
|
BatchSource string `json:"batch_source"` //来源内容 路径或者实际的url内容
|
|
BatchExecuteMethod string `json:"batch_execute_method"` //任务执行方式 追加,覆盖
|
|
Remark string `json:"remark"` //备注
|
|
}
|
|
type BatchTaskEditReq struct {
|
|
Id string `json:"id"`
|
|
BatchTaskName string `json:"batch_task_name"` //任务名
|
|
BatchType string `json:"batch_type"` //任务类型
|
|
BatchHostCode string `json:"batch_host_code"` //网站唯一码 是否绑定到某个主机上
|
|
BatchSourceType string `json:"batch_source_type"` //来源类型(local,url)
|
|
BatchSource string `json:"batch_source"` //来源内容 路径或者实际的url内容
|
|
BatchExecuteMethod string `json:"batch_execute_method"` //任务执行方式 追加,覆盖
|
|
Remark string `json:"remark"` //备注
|
|
}
|
|
type BatchTaskDetailReq struct {
|
|
Id string `json:"id" form:"id"`
|
|
}
|
|
type BatchTaskDeleteReq struct {
|
|
Id string `json:"id" form:"id"`
|
|
}
|
|
type BatchTaskSearchReq struct {
|
|
BatchTaskName string `json:"batch_task_name"` //任务名
|
|
request.PageInfo
|
|
}
|
|
type BatchTaskManualReq struct {
|
|
Id string `json:"id" form:"id"`
|
|
}
|