2024-10-26 11:57:47 -04:00
|
|
|
package model
|
|
|
|
|
|
|
|
type NotificationForm struct {
|
2024-11-16 07:57:03 -05:00
|
|
|
Name string `json:"name,omitempty" minLength:"1"`
|
2024-10-26 11:57:47 -04:00
|
|
|
URL string `json:"url,omitempty"`
|
2024-11-16 07:57:03 -05:00
|
|
|
RequestMethod uint8 `json:"request_method,omitempty"`
|
|
|
|
RequestType uint8 `json:"request_type,omitempty"`
|
2024-10-26 11:57:47 -04:00
|
|
|
RequestHeader string `json:"request_header,omitempty"`
|
|
|
|
RequestBody string `json:"request_body,omitempty"`
|
2024-11-16 07:57:03 -05:00
|
|
|
VerifyTLS bool `json:"verify_tls,omitempty" validate:"optional"`
|
|
|
|
SkipCheck bool `json:"skip_check,omitempty" validate:"optional"`
|
2024-10-26 11:57:47 -04:00
|
|
|
}
|