aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger/user.go
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2024-03-14 12:59:52 +0800
committerGitHub <noreply@github.com>2024-03-14 04:59:52 +0000
commit2033eb7c1138a06ea052e6c6e6e5799187519e16 (patch)
tree81e5111a94c282e3df6a232d8f42a566a0babdcf /routers/api/v1/swagger/user.go
parenteb8c34fc367f324226625d39d0487f945269cd73 (diff)
downloadgitea-2033eb7c1138a06ea052e6c6e6e5799187519e16.tar.gz
gitea-2033eb7c1138a06ea052e6c6e6e5799187519e16.zip
Fix lint-swagger warning (#29787)
Caused by: #23106 Fix: https://github.com/go-gitea/gitea/actions/runs/8274650046/job/22640335697 1. Delete `UserBadgeList` in `options.go`, because it wasn't used. (The struct defined in `options.go` is the struct used to parse the request body) 2. Move `BadgeList` struct under `routers/api/v1/swagger` folder which response should be defined in.
Diffstat (limited to 'routers/api/v1/swagger/user.go')
-rw-r--r--routers/api/v1/swagger/user.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go
index fb6d185ee7..e2ad511d2b 100644
--- a/routers/api/v1/swagger/user.go
+++ b/routers/api/v1/swagger/user.go
@@ -48,3 +48,10 @@ type swaggerResponseUserSettings struct {
// in:body
Body []api.UserSettings `json:"body"`
}
+
+// BadgeList
+// swagger:response BadgeList
+type swaggerResponseBadgeList struct {
+ // in:body
+ Body []api.Badge `json:"body"`
+}