gitea源码

notify.go 662B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package swagger
  4. import (
  5. api "code.gitea.io/gitea/modules/structs"
  6. )
  7. // NotificationThread
  8. // swagger:response NotificationThread
  9. type swaggerNotificationThread struct {
  10. // in:body
  11. Body api.NotificationThread `json:"body"`
  12. }
  13. // NotificationThreadList
  14. // swagger:response NotificationThreadList
  15. type swaggerNotificationThreadList struct {
  16. // in:body
  17. Body []api.NotificationThread `json:"body"`
  18. }
  19. // Number of unread notifications
  20. // swagger:response NotificationCount
  21. type swaggerNotificationCount struct {
  22. // in:body
  23. Body api.NotificationCount `json:"body"`
  24. }