From 22d8e807373ae081addaf318983f59300f4befc6 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 27 Sep 2023 04:55:34 +0900 Subject: [PATCH] initial commits --- ent/notification.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ent/notification.go diff --git a/ent/notification.go b/ent/notification.go new file mode 100644 index 0000000..60f7233 --- /dev/null +++ b/ent/notification.go @@ -0,0 +1,18 @@ +package ent + +import ( + "sourcecode.social/reiver/go-opt" +) + +// Notification represents a Mastodon API "Notification". +// +// See: +// https://docs.joinmastodon.org/entities/Notification/ +type Notification struct { + ID opt.Optional[string] `json:"id"` + Type opt.Optional[string] `json:"type"` + CreatedAt opt.Optional[string] `json:"created_at"` + Account Account `json:"account"` + Status opt.Optional[Status] `json:"account"` + Report opt.Optional[Report] `json:"report"` +}