2023-09-26 19:53:17 +00:00
|
|
|
package ent
|
|
|
|
|
|
|
|
import (
|
2023-09-27 06:34:42 +00:00
|
|
|
"sourcecode.social/reiver/go-jsonstr"
|
2024-08-01 23:59:52 +00:00
|
|
|
"github.com/reiver/go-nul"
|
2024-08-01 22:29:50 +00:00
|
|
|
"github.com/reiver/go-opt"
|
2023-09-26 19:53:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Report represents a Mastodon API "Report".
|
|
|
|
//
|
|
|
|
// See:
|
|
|
|
// https://docs.joinmastodon.org/entities/Report/
|
|
|
|
type Report struct {
|
2023-09-27 06:34:42 +00:00
|
|
|
ID opt.Optional[string] `json:"id"`
|
|
|
|
ActionTaken opt.Optional[bool] `json:"action_taken"`
|
|
|
|
ActionTakenAt nul.Nullable[string] `json:"action_taken_at"`
|
|
|
|
Category opt.Optional[string] `json:"category"`
|
|
|
|
Comment opt.Optional[string] `json:"comment"`
|
|
|
|
Forwarded opt.Optional[bool] `json:"forwarded"`
|
|
|
|
CreatedAt opt.Optional[string] `json:"created_at"`
|
|
|
|
StatusIDs nul.Nullable[jsonstr.Strings] `json:"status_ids"`
|
|
|
|
RuleIDs nul.Nullable[jsonstr.Strings] `json:"rule_ids"`
|
|
|
|
TargetAccount Account `json:"target_account"`
|
2023-09-26 19:53:17 +00:00
|
|
|
}
|