Yuriko/pkg/models/postresult.go
2021-05-07 19:46:41 +07:00

20 lines
467 B
Go

package models
type WebhookBody struct {
Post WebhookPostBody `json:"post"`
}
type WebhookPostBody struct {
Current WebhookPost `json:"current"`
}
type WebhookPost 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 string `json:"published_at"`
}