diff options
Diffstat (limited to 'internal/api/model/admin.go')
-rw-r--r-- | internal/api/model/admin.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/api/model/admin.go b/internal/api/model/admin.go index 9bf1f6d8d..ada415546 100644 --- a/internal/api/model/admin.go +++ b/internal/api/model/admin.go @@ -79,3 +79,15 @@ type AdminReportInfo struct { // Statuses attached to the report, for context. Statuses []Status `json:"statuses"` } + +// AdminAccountActionRequest models the admin view of an account's details. +// +// swagger:ignore +type AdminAccountActionRequest struct { + // Type of the account action. 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:"-"` +} |