More API progress

This time mainly helper functions for converting an account and
associated types into their API representation
This commit is contained in:
Melody Becker 2024-11-04 07:48:46 +01:00
parent 873f52d64f
commit a653477e7f
8 changed files with 201 additions and 7 deletions

View file

@ -35,7 +35,7 @@ type linstromNote struct {
}
type linstromOriginServer struct {
Id int `jsonapi:"primary,origins"`
Id uint `jsonapi:"primary,origins"`
CreatedAt time.Time `jsonapi:"attr,created_at"`
UpdatedAt *time.Time `jsonapi:"attr,updated_at,omitempty"`
ServerType string `jsonapi:"attr,server_type"` // one of "Linstrom", "Mastodon", "Plemora", "Misskey" or "Wafrn"