Add Attachment and Object to types.go
This commit is contained in:
71
types.go
71
types.go
@ -135,8 +135,78 @@ type flip struct {
|
|||||||
TeamMentions interface{} `json:"team_mentions"`
|
TeamMentions interface{} `json:"team_mentions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type image struct {
|
||||||
|
Width int `json:"width"`
|
||||||
|
Height int `json:"height"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type metadata struct {
|
||||||
|
AssetType int `json:"assetType"`
|
||||||
|
Image image `json:"image"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type preview struct {
|
||||||
|
Filename string `json:"filename"`
|
||||||
|
Region string `json:"region"`
|
||||||
|
Endpoint string `json:"endpoint"`
|
||||||
|
Bucket string `json:"bucket"`
|
||||||
|
Path string `json:"path"`
|
||||||
|
Size int `json:"size"`
|
||||||
|
MimeType string `json:"mimeType"`
|
||||||
|
EncHash string `json:"encHash"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
VerifyKey string `json:"verifyKey"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Nonce string `json:"nonce"`
|
||||||
|
Metadata metadata `json:"metadata"`
|
||||||
|
Tag int `json:"tag"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type previews struct {
|
||||||
|
Filename string `json:"filename"`
|
||||||
|
Region string `json:"region"`
|
||||||
|
Endpoint string `json:"endpoint"`
|
||||||
|
Bucket string `json:"bucket"`
|
||||||
|
Path string `json:"path"`
|
||||||
|
Size int `json:"size"`
|
||||||
|
MimeType string `json:"mimeType"`
|
||||||
|
EncHash string `json:"encHash"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
VerifyKey string `json:"verifyKey"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Nonce string `json:"nonce"`
|
||||||
|
Metadata metadata `json:"metadata"`
|
||||||
|
Tag int `json:"tag"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type object struct {
|
||||||
|
Filename string `json:"filename"`
|
||||||
|
Region string `json:"region"`
|
||||||
|
Endpoint string `json:"endpoint"`
|
||||||
|
Bucket string `json:"bucket"`
|
||||||
|
Path string `json:"path"`
|
||||||
|
Size int `json:"size"`
|
||||||
|
MimeType string `json:"mimeType"`
|
||||||
|
EncHash string `json:"encHash"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
VerifyKey string `json:"verifyKey"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Nonce string `json:"nonce"`
|
||||||
|
Metadata metadata `json:"metadata"`
|
||||||
|
Tag int `json:"tag"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type attachment struct {
|
||||||
|
Object object `json:"object"`
|
||||||
|
Preview preview `json:"preview"`
|
||||||
|
Previews []previews `json:"previews"`
|
||||||
|
Metadata metadata `json:"metadata"`
|
||||||
|
Uploaded bool `json:"uploaded"`
|
||||||
|
}
|
||||||
|
|
||||||
type content struct {
|
type content struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
Attachment attachment `json:"attachment"`
|
||||||
Delete delete `json:"delete"`
|
Delete delete `json:"delete"`
|
||||||
Edit edit `json:"edit"`
|
Edit edit `json:"edit"`
|
||||||
Reaction reaction `json:"reaction"`
|
Reaction reaction `json:"reaction"`
|
||||||
@ -248,6 +318,7 @@ type options struct {
|
|||||||
TopicType string `json:"topic_type,omitempty"`
|
TopicType string `json:"topic_type,omitempty"`
|
||||||
TopicName string `json:"topic_name,omitempty"`
|
TopicName string `json:"topic_name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type params struct {
|
type params struct {
|
||||||
Options options `json:"options"`
|
Options options `json:"options"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user