mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
fix struct tags (#7)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package model
|
||||
|
||||
type NotificationForm struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Name string `json:"name,omitempty" minLength:"1"`
|
||||
URL string `json:"url,omitempty"`
|
||||
RequestMethod int `json:"request_method,omitempty"`
|
||||
RequestType int `json:"request_type,omitempty"`
|
||||
RequestMethod uint8 `json:"request_method,omitempty"`
|
||||
RequestType uint8 `json:"request_type,omitempty"`
|
||||
RequestHeader string `json:"request_header,omitempty"`
|
||||
RequestBody string `json:"request_body,omitempty"`
|
||||
VerifyTLS bool `json:"verify_tls,omitempty"`
|
||||
SkipCheck bool `json:"skip_check,omitempty"`
|
||||
VerifyTLS bool `json:"verify_tls,omitempty" validate:"optional"`
|
||||
SkipCheck bool `json:"skip_check,omitempty" validate:"optional"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user