Browse Source

Add Slug, Created, and Updated to PostParams

for creating or updating posts.
pull/17/head
Matt Baer 5 years ago
parent
commit
062df41a63
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      post.go

+ 8
- 5
post.go View File

@@ -42,11 +42,14 @@ type (
Token string `json:"token,omitempty"`

// Parameters for creating or updating
Title string `json:"title,omitempty"`
Content string `json:"body,omitempty"`
Font string `json:"font,omitempty"`
IsRTL *bool `json:"rtl,omitempty"`
Language *string `json:"lang,omitempty"`
Slug string `json:"slug"`
Created *time.Time `json:"created,omitempty"`
Updated *time.Time `json:"updated,omitempty"`
Title string `json:"title,omitempty"`
Content string `json:"body,omitempty"`
Font string `json:"font,omitempty"`
IsRTL *bool `json:"rtl,omitempty"`
Language *string `json:"lang,omitempty"`

// Parameters only for creating
Crosspost []map[string]string `json:"crosspost,omitempty"`


Loading…
Cancel
Save