You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/model/param/wp_post.go

36 lines
1.7 KiB
Go

package param
type WpPost struct {
Date string `json:"date"`
DateGmt string `json:"date_gmt"`
Guid map[string]interface{} `json:"guid"`
Id int32 `json:"id"`
Link string `json:"link"`
Modified string `json:"modified"`
ModifiedGmt string `json:"modified_gmt"`
Slug string `json:"slug"`
Status string `json:"status"`
Type string `json:"type"`
Password string `json:"password"`
PermalinkTemplate string `json:"permalink_template"`
GeneratedSlug string `json:"generated_slug"`
Title string `json:"title"`
Content string `json:"content"`
Author int32 `json:"author"`
Excerpt map[string]interface{} `json:"excerpt"`
FeaturedMedia int32 `json:"featured_media"`
CommentStatus string `json:"comment_status"`
PingStatus string `json:"ping_status"`
Format string `json:"format"`
Meta map[string]interface{} `json:"meta"`
Sticky bool `json:"sticky"`
Template string `json:"template"`
Categories []int32 `json:"categories"`
Tags []int32 `json:"tags"`
}
type WpPostQuery struct {
Page int `form:"page" default:"1"`
PerPage int `form:"per_page" default:"10"`
}