[MM-59367] export: enable exporting thread followers for CRT (#27623)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2024-08-29 14:06:41 +02:00
коммит произвёл GitHub
родитель 3dc0e63c03
Коммит d5cc2eb2f6
17 изменённых файлов: 1430 добавлений и 63 удалений

Просмотреть файл

@@ -187,6 +187,8 @@ type PostImportData struct {
Replies *[]ReplyImportData `json:"replies,omitempty"`
Attachments *[]AttachmentImportData `json:"attachments,omitempty"`
IsPinned *bool `json:"is_pinned,omitempty"`
ThreadFollowers *[]ThreadFollowerImportData `json:"thread_followers,omitempty"`
}
type DirectChannelImportData struct {
@@ -213,6 +215,8 @@ type DirectPostImportData struct {
Replies *[]ReplyImportData `json:"replies"`
Attachments *[]AttachmentImportData `json:"attachments"`
IsPinned *bool `json:"is_pinned,omitempty"`
ThreadFollowers *[]ThreadFollowerImportData `json:"thread_followers,omitempty"`
}
type SchemeImportData struct {
@@ -255,3 +259,11 @@ type ComparablePreference struct {
Category string
Name string
}
type ThreadFollowerImportData struct {
// User is the username of the follower. It's the general convention
// for import data types to name it as user for the username.
User *string `json:"user"`
LastViewed *int64 `json:"last_viewed,omitempty"`
UnreadMentions *int64 `json:"unread_mentions,omitempty"`
}