messages.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package api // import "miniflux.app/v2/internal/api"
  4. import (
  5. "miniflux.app/v2/internal/model"
  6. )
  7. type feedIconResponse struct {
  8. ID int64 `json:"id"`
  9. MimeType string `json:"mime_type"`
  10. Data string `json:"data"`
  11. }
  12. type entriesResponse struct {
  13. Total int `json:"total"`
  14. Entries model.Entries `json:"entries"`
  15. }
  16. type integrationsStatusResponse struct {
  17. HasIntegrations bool `json:"has_integrations"`
  18. }
  19. type entryIDResponse struct {
  20. ID int64 `json:"id"`
  21. }
  22. type entryContentResponse struct {
  23. Content string `json:"content"`
  24. ReadingTime int `json:"reading_time"`
  25. }
  26. type entryImportRequest struct {
  27. URL string `json:"url"`
  28. Title string `json:"title"`
  29. Content string `json:"content"`
  30. Author string `json:"author"`
  31. CommentsURL string `json:"comments_url"`
  32. PublishedAt int64 `json:"published_at"`
  33. Status string `json:"status"`
  34. Starred bool `json:"starred"`
  35. Tags []string `json:"tags"`
  36. ExternalID string `json:"external_id"`
  37. }
  38. type feedCreationResponse struct {
  39. FeedID int64 `json:"feed_id"`
  40. }
  41. type importFeedsResponse struct {
  42. Message string `json:"message"`
  43. }
  44. type versionResponse struct {
  45. Version string `json:"version"`
  46. Commit string `json:"commit"`
  47. BuildDate string `json:"build_date"`
  48. GoVersion string `json:"go_version"`
  49. Compiler string `json:"compiler"`
  50. Arch string `json:"arch"`
  51. OS string `json:"os"`
  52. }