More API progress
This time mainly helper functions for converting an account and associated types into their API representation
This commit is contained in:
parent
873f52d64f
commit
a653477e7f
8 changed files with 201 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue