From 0f12bc42cbaf870efdf34f9fb8fd381a848f655a Mon Sep 17 00:00:00 2001 From: pytimer Date: Thu, 28 Apr 2022 10:01:03 +0800 Subject: [PATCH] Fix test --- testdata/golist/api/api.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testdata/golist/api/api.go b/testdata/golist/api/api.go index e24d4960f..ff6cc05ae 100644 --- a/testdata/golist/api/api.go +++ b/testdata/golist/api/api.go @@ -15,10 +15,7 @@ func PrintInt(i, j int) { } type Foo struct { - ID int `json:"id"` - Category struct { - Name string `json:"name"` - } `json:"category"` + ID int `json:"id"` Name string `json:"name"` PhotoUrls []string `json:"photoUrls"` Status string `json:"status"` @@ -31,7 +28,7 @@ type Foo struct { // @Accept json // @Produce json // @Param some_id path int true "Some ID" -// @Param some_foo query Foo true "Foo" +// @Param some_foo formData Foo true "Foo" // @Success 200 {string} string "ok" // @Failure 400 {object} web.APIError "We need ID!!" // @Failure 404 {object} web.APIError "Can not find ID"