Fix lint-swagger warning (#29787)
Caused by: #23106
Fix:
2264033569
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.
This commit is contained in:
parent
eb8c34fc36
commit
2033eb7c11
4 changed files with 8 additions and 26 deletions
|
@ -132,10 +132,3 @@ type UserBadgeOption struct {
|
|||
// example: ["badge1","badge2"]
|
||||
BadgeSlugs []string `json:"badge_slugs" binding:"Required"`
|
||||
}
|
||||
|
||||
// BadgeList
|
||||
// swagger:response BadgeList
|
||||
type BadgeList struct {
|
||||
// in:body
|
||||
Body []Badge `json:"body"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue