From 0a45d66de87564589527770925259d34e08a9872 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 14:59:13 +0900 Subject: [PATCH] initial commits --- ent/admn/ip.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ent/admn/ip.go diff --git a/ent/admn/ip.go b/ent/admn/ip.go new file mode 100644 index 0000000..95f90c0 --- /dev/null +++ b/ent/admn/ip.go @@ -0,0 +1,15 @@ +package admn + +import ( + "sourcecode.social/reiver/go-opt" + "sourcecode.social/reiver/go-nul" +) + +// IP represents a Mastodon API "Admin::Ip". +// +// See: +// https://docs.joinmastodon.org/entities/Admin_Ip/ +type IP struct { + IP opt.Optional[string] `json:"ip"` // ip-address + UsedAt opt.Optional[string] `json:"used_at"` +}