diff options
Diffstat (limited to 'internal/api/model/admin.go')
-rw-r--r-- | internal/api/model/admin.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/api/model/admin.go b/internal/api/model/admin.go index 860cb8926..6be3e9cbd 100644 --- a/internal/api/model/admin.go +++ b/internal/api/model/admin.go @@ -163,16 +163,19 @@ type AdminEmoji struct { URI string `json:"uri"` } -// AdminAccountActionRequest models the admin view of an account's details. +// AdminActionRequest models a request +// for an admin action to be performed. // // swagger:ignore -type AdminAccountActionRequest struct { - // Type of the account action. One of disable, silence, suspend. +type AdminActionRequest struct { + // Category of the target entity. + Category string `form:"-" json:"-" xml:"-"` + // Type of admin action to take. One of disable, silence, suspend. Type string `form:"type" json:"type" xml:"type"` // Text describing why an action was taken. Text string `form:"text" json:"text" xml:"text"` - // ID of the account to be acted on. - TargetAccountID string `form:"-" json:"-" xml:"-"` + // ID of the target entity. + TargetID string `form:"-" json:"-" xml:"-"` } // MediaCleanupRequest models admin media cleanup parameters |