Changeset 0.28.0.4 (#176)
This commit is contained in:
@@ -257,6 +257,20 @@ type ChannelStore interface {
|
||||
|
||||
// Workspace resolution: channel workspace_id > project workspace_id
|
||||
ResolveWorkspaceID(ctx context.Context, channelID string) (string, error)
|
||||
|
||||
// Admin: archived channel management (v0.23.2)
|
||||
ListArchived(ctx context.Context, opts ListOptions) ([]ArchivedChannel, int, error)
|
||||
Purge(ctx context.Context, id string) error // hard-delete; channel must be archived
|
||||
}
|
||||
|
||||
// ArchivedChannel is a view model for the admin archived channels list.
|
||||
type ArchivedChannel struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"`
|
||||
OwnerName string `json:"owner_name"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
MessageCount int `json:"message_count"`
|
||||
}
|
||||
|
||||
// =========================================
|
||||
@@ -287,6 +301,7 @@ type MessageStore interface {
|
||||
type AuditStore interface {
|
||||
Log(ctx context.Context, entry *models.AuditEntry) error
|
||||
List(ctx context.Context, opts AuditListOptions) ([]models.AuditEntry, int, error)
|
||||
ListActions(ctx context.Context) ([]string, error)
|
||||
}
|
||||
|
||||
type AuditListOptions struct {
|
||||
|
||||
Reference in New Issue
Block a user