2023-09-26 19:53:17 +00:00
|
|
|
package ent
|
|
|
|
|
|
|
|
import (
|
2024-08-02 00:09:06 +00:00
|
|
|
"github.com/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 {
|
2024-08-08 19:50:09 +00:00
|
|
|
ID opt.Optional[string] `json:"id,omitempty"`
|
|
|
|
ActionTaken opt.Optional[bool] `json:"action_taken,omitempty"`
|
|
|
|
ActionTakenAt nul.Nullable[string] `json:"action_taken_at,omitempty"`
|
|
|
|
Category opt.Optional[string] `json:"category,omitempty"`
|
|
|
|
Comment opt.Optional[string] `json:"comment,omitempty"`
|
|
|
|
Forwarded opt.Optional[bool] `json:"forwarded,omitempty"`
|
|
|
|
CreatedAt opt.Optional[string] `json:"created_at,omitempty"`
|
|
|
|
StatusIDs nul.Nullable[jsonstr.Strings] `json:"status_ids,omitempty"`
|
|
|
|
RuleIDs nul.Nullable[jsonstr.Strings] `json:"rule_ids,omitempty"`
|
|
|
|
TargetAccount opt.Optional[Account] `json:"target_account,omitempty"`
|
2023-09-26 19:53:17 +00:00
|
|
|
}
|