feat(client): expose feed and entry language on public Go client structs
Mirrors the new `language` JSON field on the server-side Feed and Entry models so that third-party consumers of the Go API client can read the value declared by feeds and entries.
This commit is contained in:
@@ -147,6 +147,7 @@ type Feed struct {
|
|||||||
SiteURL string `json:"site_url"`
|
SiteURL string `json:"site_url"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
Language string `json:"language"`
|
||||||
CheckedAt time.Time `json:"checked_at"`
|
CheckedAt time.Time `json:"checked_at"`
|
||||||
NextCheckAt time.Time `json:"next_check_at"`
|
NextCheckAt time.Time `json:"next_check_at"`
|
||||||
EtagHeader string `json:"etag_header,omitempty"`
|
EtagHeader string `json:"etag_header,omitempty"`
|
||||||
@@ -270,6 +271,7 @@ type Entry struct {
|
|||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
|
Language string `json:"language"`
|
||||||
Author string `json:"author"`
|
Author string `json:"author"`
|
||||||
ShareCode string `json:"share_code"`
|
ShareCode string `json:"share_code"`
|
||||||
Enclosures Enclosures `json:"enclosures,omitempty"`
|
Enclosures Enclosures `json:"enclosures,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user