From 96ced3daa9c11a440d85fc59002dc0cab8408b64 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 27 Sep 2023 04:53:17 +0900 Subject: [PATCH] initial commits --- ent/report.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ent/report.go diff --git a/ent/report.go b/ent/report.go new file mode 100644 index 0000000..8f3c695 --- /dev/null +++ b/ent/report.go @@ -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"` +}