mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 06:34:25 +00:00
2033eb7c11
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.
58 lines
1.1 KiB
Go
58 lines
1.1 KiB
Go
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package swagger
|
|
|
|
import (
|
|
activities_model "code.gitea.io/gitea/models/activities"
|
|
api "code.gitea.io/gitea/modules/structs"
|
|
)
|
|
|
|
// User
|
|
// swagger:response User
|
|
type swaggerResponseUser struct {
|
|
// in:body
|
|
Body api.User `json:"body"`
|
|
}
|
|
|
|
// UserList
|
|
// swagger:response UserList
|
|
type swaggerResponseUserList struct {
|
|
// in:body
|
|
Body []api.User `json:"body"`
|
|
}
|
|
|
|
// EmailList
|
|
// swagger:response EmailList
|
|
type swaggerResponseEmailList struct {
|
|
// in:body
|
|
Body []api.Email `json:"body"`
|
|
}
|
|
|
|
// swagger:model EditUserOption
|
|
type swaggerModelEditUserOption struct {
|
|
// in:body
|
|
Options api.EditUserOption
|
|
}
|
|
|
|
// UserHeatmapData
|
|
// swagger:response UserHeatmapData
|
|
type swaggerResponseUserHeatmapData struct {
|
|
// in:body
|
|
Body []activities_model.UserHeatmapData `json:"body"`
|
|
}
|
|
|
|
// UserSettings
|
|
// swagger:response UserSettings
|
|
type swaggerResponseUserSettings struct {
|
|
// in:body
|
|
Body []api.UserSettings `json:"body"`
|
|
}
|
|
|
|
// BadgeList
|
|
// swagger:response BadgeList
|
|
type swaggerResponseBadgeList struct {
|
|
// in:body
|
|
Body []api.Badge `json:"body"`
|
|
}
|