diff options
author | 2024-04-18 12:36:02 +0200 | |
---|---|---|
committer | 2024-04-18 12:36:02 +0200 | |
commit | 431505b3e484255ca3b009907307962cc852cfa5 (patch) | |
tree | cd5e1d80dd35575fe04384b36cb56369eb418cf3 /internal/api/model | |
parent | [feature] Stub account mutes endpoint (#2852) (diff) | |
download | gotosocial-431505b3e484255ca3b009907307962cc852cfa5.tar.xz |
[feature] Stub conversations endpoint (#2853)
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/conversation.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/internal/api/model/conversation.go b/internal/api/model/conversation.go index 76299b32f..ba961cecb 100644 --- a/internal/api/model/conversation.go +++ b/internal/api/model/conversation.go @@ -17,19 +17,17 @@ package model -// Conversation represents a conversation with "direct message" visibility. +// Conversation represents a conversation +// with "direct message" visibility. +// +// swagger:model conversation type Conversation struct { - // REQUIRED - // Local database ID of the conversation. ID string `json:"id"` - // Participants in the conversation. - Accounts []Account `json:"accounts"` // Is the conversation currently marked as unread? Unread bool `json:"unread"` - - // OPTIONAL - - // The last status in the conversation, to be used for optional display. + // Participants in the conversation. + Accounts []Account `json:"accounts"` + // The last status in the conversation. May be `null`. LastStatus *Status `json:"last_status"` } |