mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:28:31 +02:00
fix CIDRWhitelist status field
This commit is contained in:
@@ -17,7 +17,7 @@ type cidrWhitelist struct {
|
|||||||
|
|
||||||
type cidrWhitelistOpts struct {
|
type cidrWhitelistOpts struct {
|
||||||
Allow []*types.CIDR `validate:"min=1"`
|
Allow []*types.CIDR `validate:"min=1"`
|
||||||
StatusCode int `validate:"omitempty,gte=400,lte=599"`
|
StatusCode int `json:"status" validate:"omitempty,gte=400,lte=599"`
|
||||||
Message string
|
Message string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user