initial commits

master
Charles Iliya Krempeaux 2023-09-27 04:53:17 +09:00
parent 5426a74b3e
commit 96ced3daa9
1 changed files with 25 additions and 0 deletions

25
ent/report.go 100644
View File

@ -0,0 +1,25 @@
package ent
import (
"encoding/json"
"sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt"
)
// Report represents a Mastodon API "Report".
//
// See:
// https://docs.joinmastodon.org/entities/Report/
type Report struct {
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 json.RawMessage `json:"status_ids"`
RuleIDs json.RawMessage `json:"rule_ids"`
TargetAccount Account `json:"target_account"`
}