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"` +}