forked from grundleborg/slack-advanced-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.go
29 lines (25 loc) · 804 Bytes
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
type SlackFile struct {
Id string `json:"id"`
Name string `json:"name"`
UrlPrivate string `json:"url_private"`
UrlPrivateDownload string `json:"url_private_download"`
}
type SlackPost struct {
User string `json:"user"`
Type string `json:"type"`
Subtype string `json:"subtype"`
Text string `json:"text"`
Ts string `json:"ts"`
File *SlackFile `json:"file"`
Files []*SlackFile `json:"files"`
}
// As it appears in users.json and /api/users.list.
// There're obviously many more fields, but we only need a couple of them.
type SlackUser struct {
Id string `json:"id"`
Profile SlackUserProfile `json:"profile"`
}
type SlackUserProfile struct {
Email string `json:"email"`
}