messages.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 entryIDsResponse struct {
  23. Total int `json:"total"`
  24. EntryIDs []int64 `json:"entry_ids"`
  25. }
  26. type entryContentResponse struct {
  27. Content string `json:"content"`
  28. ReadingTime int `json:"reading_time"`
  29. }
  30. type entryImportRequest struct {
  31. URL string `json:"url"`
  32. Title string `json:"title"`
  33. Content string `json:"content"`
  34. Author string `json:"author"`
  35. CommentsURL string `json:"comments_url"`
  36. PublishedAt int64 `json:"published_at"`
  37. Status string `json:"status"`
  38. Starred bool `json:"starred"`
  39. Tags []string `json:"tags"`
  40. ExternalID string `json:"external_id"`
  41. }
  42. type feedCreationResponse struct {
  43. FeedID int64 `json:"feed_id"`
  44. }
  45. type importFeedsResponse struct {
  46. Message string `json:"message"`
  47. }
  48. type versionResponse struct {
  49. Version string `json:"version"`
  50. Commit string `json:"commit"`
  51. BuildDate string `json:"build_date"`
  52. GoVersion string `json:"go_version"`
  53. Compiler string `json:"compiler"`
  54. Arch string `json:"arch"`
  55. OS string `json:"os"`
  56. }