Skip to content

Commit

Permalink
Merge pull request #6 from a972667237/chore/openapi
Browse files Browse the repository at this point in the history
chore(openapi): add file in message
  • Loading branch information
ccc committed Nov 2, 2018
2 parents 2a589fa + 2366c68 commit 62b6810
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions openapi/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,32 @@ type Repost struct {
Text *string `json:"text,omitempty"`
}

type File struct {
Inactive *bool `json:"inactive,omitempty"`
Description *string `json:"description,omitempty"`
Category *string `json:"category,omitempty"`
Deleted *bool `json:"deleted,omitempty"`
StarID *string `json:"star_id,omitempty"`
Key *MessageKey `json:"key,omitempty"`
Updated *Time `json:"updated,omitempty"`
UID *string `json:"uid,omitempty"`
VCIDS []string `json:"vcids,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Created *Time `json:"created,omitempty"`
Source *string `json:"source,omitempty"`
Mime *string `json:"mime,omitempty"`
ImageURL *string `json:"image_url,omitempty"`
PreviewURL *string `json:"preview_url,omitempty"`
Title *string `json:"title,omitempty"`
ChannelID *string `json:"channel_id,omitempty"`
Summary *string `json:"summary,omitempty"`
IsPublic *bool `json:"is_public,omitempty"`
ID *string `json:"id,omitempty"`
URL *string `json:"url,omitempty"`
TeamID *string `json:"team_id,omitempty"`
}

type Message struct {
Repost *Repost `json:"repost,omitempty"`
Key *MessageKey `json:"key,omitempty"`
Expand All @@ -64,6 +90,7 @@ type Message struct {
Subtype *MessageSubtype `json:"subtype,omitempty"`
Text *string `json:"text,omitempty"`
DisableMarkdown *bool `json:"disable_markdown,omitempty"`
File *File `json:"file,omitempty"`
}

type MessageService service
Expand Down

0 comments on commit 62b6810

Please sign in to comment.