mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 22:52:25 -05:00
[feature] Stub conversations endpoint (#2853)
This commit is contained in:
parent
34d0159ad5
commit
431505b3e4
5 changed files with 263 additions and 9 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue