initial commits

master
Charles Iliya Krempeaux 2023-09-28 09:39:41 +09:00
parent 4487d0f4f6
commit 04f3882fff
2 changed files with 18 additions and 8 deletions

View File

@ -12,11 +12,3 @@ type Dimension struct {
Key opt.Optional[string] `json:"key"` Key opt.Optional[string] `json:"key"`
Data []DimensionData `json:"data"` Data []DimensionData `json:"data"`
} }
type DimensionData struct {
Key opt.Optional[string] `json:"key"`
HumanKey opt.Optional[string] `json:"human_key"`
Value opt.Optional[string] `json:"value"`
Unit opt.Optional[string] `json:"unit"`
HumanValue opt.Optional[string] `json:"human_value"`
}

View File

@ -0,0 +1,18 @@
package admn
import (
"sourcecode.social/reiver/go-opt"
)
// DimensionData represents a Mastodon API "Admin::Dimension Data".
//
// See:
// https://web.archive.org/web/20230716101711/https://docs.joinmastodon.org/entities/Admin_Dimension/#data
type DimensionData struct {
Key opt.Optional[string] `json:"key"`
HumanKey opt.Optional[string] `json:"human_key"`
Value opt.Optional[string] `json:"value"`
Unit opt.Optional[string] `json:"unit"`
HumanValue opt.Optional[string] `json:"human_value"`
}