gitea源码

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package swagger
  4. import (
  5. activities_model "code.gitea.io/gitea/models/activities"
  6. api "code.gitea.io/gitea/modules/structs"
  7. )
  8. // User
  9. // swagger:response User
  10. type swaggerResponseUser struct {
  11. // in:body
  12. Body api.User `json:"body"`
  13. }
  14. // UserList
  15. // swagger:response UserList
  16. type swaggerResponseUserList struct {
  17. // in:body
  18. Body []api.User `json:"body"`
  19. }
  20. // EmailList
  21. // swagger:response EmailList
  22. type swaggerResponseEmailList struct {
  23. // in:body
  24. Body []api.Email `json:"body"`
  25. }
  26. // swagger:model EditUserOption
  27. type swaggerModelEditUserOption struct {
  28. // in:body
  29. Options api.EditUserOption
  30. }
  31. // UserHeatmapData
  32. // swagger:response UserHeatmapData
  33. type swaggerResponseUserHeatmapData struct {
  34. // in:body
  35. Body []activities_model.UserHeatmapData `json:"body"`
  36. }
  37. // UserSettings
  38. // swagger:response UserSettings
  39. type swaggerResponseUserSettings struct {
  40. // in:body
  41. Body []api.UserSettings `json:"body"`
  42. }
  43. // BadgeList
  44. // swagger:response BadgeList
  45. type swaggerResponseBadgeList struct {
  46. // in:body
  47. Body []api.Badge `json:"body"`
  48. }