mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 08:29:58 +08:00
feat: rest validation on http requests (#3041)
This commit is contained in:
7
core/validation/validator.go
Normal file
7
core/validation/validator.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package validation
|
||||
|
||||
// Validator represents a validator.
|
||||
type Validator interface {
|
||||
// Validate validates the value.
|
||||
Validate() error
|
||||
}
|
||||
Reference in New Issue
Block a user