summaryrefslogtreecommitdiff
path: root/shrine/types/letter/request.go
blob: 69236d4f826e814204d367f1b4aca278c7f716cb (plain)
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
package letter

type CreateRequest struct {
	Recipients     []string `json:"recipients"`
	Title          string   `json:"title"`
	Body           string   `json:"body"`
	AttachmentRefs []string `json:"attachment_refs"`
}

type SendMessageRequest struct {
	Body           string   `json:"body"`
	AttachmentRefs []string `json:"attachment_refs"`
}

type EditMessageRequest struct {
	Body string `json:"body"`
}

type RenameRequest struct {
	Title string `json:"title"`
}

type RemoveParticipantRequest struct {
	Username string `json:"username"`
}