From abc42310fe8f4a1a8811be57eaf35323f7eabf64 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 19:00:48 +0900 Subject: [PATCH] initial commits --- ent/mention.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ent/mention.go diff --git a/ent/mention.go b/ent/mention.go new file mode 100644 index 0000000..21042d8 --- /dev/null +++ b/ent/mention.go @@ -0,0 +1,14 @@ +package ent + +import ( + "sourcecode.social/reiver/go-opt" +) + +// See: +// https://docs.joinmastodon.org/entities/Status/#Mention +type Mention struct { + ID opt.Optional[string] `json:"id"` + UserName opt.Optional[string] `json:"username"` + URL opt.Optional[string] `json:"url"` + Acct opt.Optional[string] `json:"acct"` +}