Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -481,6 +481,12 @@ type ChannelStore interface {
|
||||
// Returns rows affected (0 = not found or not owner).
|
||||
DeleteByOwner(ctx context.Context, channelID, userID string) (int64, error)
|
||||
|
||||
// ArchiveForRetention archives a channel and sets a purge_after timestamp.
|
||||
ArchiveForRetention(ctx context.Context, channelID string, purgeAfter time.Time) error
|
||||
|
||||
// ListPurgeable returns IDs of channels whose purge_after has passed.
|
||||
ListPurgeable(ctx context.Context) ([]string, error)
|
||||
|
||||
// MarkRead updates last_read_at and last_read_message_id for a user.
|
||||
MarkRead(ctx context.Context, channelID, userID string) error
|
||||
|
||||
@@ -1165,7 +1171,7 @@ type PersonaGroupStore interface {
|
||||
type FolderStore interface {
|
||||
List(ctx context.Context, userID string) ([]models.Folder, error)
|
||||
Create(ctx context.Context, f *models.Folder) error
|
||||
Update(ctx context.Context, folderID, userID string, name string, sortOrder *int) (int64, error)
|
||||
Update(ctx context.Context, folderID, userID string, name string, sortOrder *int, parentID **string) (int64, error)
|
||||
Delete(ctx context.Context, folderID, userID string) (int64, error)
|
||||
// UnassignChannels removes folder_id from all channels in this folder.
|
||||
UnassignChannels(ctx context.Context, folderID, userID string) error
|
||||
|
||||
Reference in New Issue
Block a user