Yuriko/pkg/models/article.go

34 lines
961 B
Go
Raw Normal View History

2021-05-07 12:46:41 +00:00
package models
type Article struct {
ID string `json:"id"`
Title string `json:"title"`
Url string `json:"url"`
Slug string `json:"slug"`
Excerpt string `json:"excerpt"`
HtmlMarkup string `json:"html"`
PrimaryTag string `json:"primary_tag"`
PublishedAt float64 `json:"published_at"`
}
type ArticleCreateModel struct {
ID string `json:"id"`
Title string `json:"title"`
Url string `json:"url"`
Slug string `json:"slug"`
Excerpt string `json:"excerpt"`
HtmlMarkup string `json:"html"`
PrimaryTag string `json:"primary_tag"`
PublishedAt float64 `json:"published_at"`
}
type ArticleSearchResult struct {
Title string `json:"title"`
Url string `json:"url"`
Slug string `json:"slug"`
Excerpt string `json:"excerpt"`
HtmlMarkup string `json:"html"`
PrimaryTag string `json:"primary_tag"`
PublishedAt string `json:"published_at"`
}