payload.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. // EntryImportRequest represents a manually imported entry for a feed.
  17. type EntryImportRequest struct {
  18. URL string `json:"url"`
  19. Title string `json:"title"`
  20. Content string `json:"content"`
  21. Author string `json:"author"`
  22. CommentsURL string `json:"comments_url"`
  23. PublishedAt int64 `json:"published_at"`
  24. Status string `json:"status"`
  25. Starred bool `json:"starred"`
  26. Tags []string `json:"tags"`
  27. ExternalID string `json:"external_id"`
  28. }
  29. type feedCreationResponse struct {
  30. FeedID int64 `json:"feed_id"`
  31. }
  32. type versionResponse struct {
  33. Version string `json:"version"`
  34. Commit string `json:"commit"`
  35. BuildDate string `json:"build_date"`
  36. GoVersion string `json:"go_version"`
  37. Compiler string `json:"compiler"`
  38. Arch string `json:"arch"`
  39. OS string `json:"os"`
  40. }