mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 01:40:00 +08:00
chore: remove any keywords
This commit is contained in:
@@ -400,7 +400,7 @@ func BenchmarkParseAuto(b *testing.B) {
|
||||
|
||||
type mockValidator struct{}
|
||||
|
||||
func (m mockValidator) Validate(r *http.Request, data any) error {
|
||||
func (m mockValidator) Validate(r *http.Request, data interface{}) error {
|
||||
if r.URL.Path == "/a" {
|
||||
val := reflect.ValueOf(data).Elem().FieldByName("Name").String()
|
||||
if val != "hello" {
|
||||
|
||||
Reference in New Issue
Block a user