2017-11-13 00:02:25 -07:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
2022-11-27 11:20:29 -07:00
|
|
|
// SPDX-License-Identifier: MIT
|
2017-11-13 00:02:25 -07:00
|
|
|
|
|
|
|
package swagger
|
|
|
|
|
|
|
|
import (
|
2022-08-24 20:31:57 -06:00
|
|
|
activities_model "code.gitea.io/gitea/models/activities"
|
2019-05-11 04:21:34 -06:00
|
|
|
api "code.gitea.io/gitea/modules/structs"
|
2017-11-13 00:02:25 -07:00
|
|
|
)
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// User
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response User
|
|
|
|
type swaggerResponseUser struct {
|
|
|
|
// in:body
|
|
|
|
Body api.User `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// UserList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response UserList
|
|
|
|
type swaggerResponseUserList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.User `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// EmailList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response EmailList
|
|
|
|
type swaggerResponseEmailList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Email `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// swagger:model EditUserOption
|
|
|
|
type swaggerModelEditUserOption struct {
|
|
|
|
// in:body
|
|
|
|
Options api.EditUserOption
|
|
|
|
}
|
2018-10-22 20:57:42 -06:00
|
|
|
|
|
|
|
// UserHeatmapData
|
|
|
|
// swagger:response UserHeatmapData
|
|
|
|
type swaggerResponseUserHeatmapData struct {
|
|
|
|
// in:body
|
2022-08-24 20:31:57 -06:00
|
|
|
Body []activities_model.UserHeatmapData `json:"body"`
|
2018-10-22 20:57:42 -06:00
|
|
|
}
|
2021-06-23 13:58:44 -06:00
|
|
|
|
|
|
|
// UserSettings
|
|
|
|
// swagger:response UserSettings
|
|
|
|
type swaggerResponseUserSettings struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.UserSettings `json:"body"`
|
|
|
|
}
|
2024-03-13 22:59:52 -06:00
|
|
|
|
|
|
|
// BadgeList
|
|
|
|
// swagger:response BadgeList
|
|
|
|
type swaggerResponseBadgeList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Badge `json:"body"`
|
|
|
|
}
|