Add follower and following collections
All checks were successful
/ docker (push) Successful in 4m34s
All checks were successful
/ docker (push) Successful in 4m34s
This commit is contained in:
parent
b75db5676b
commit
af6ff2dd30
11 changed files with 431 additions and 22 deletions
|
@ -4,23 +4,24 @@ import "net/http"
|
|||
|
||||
// Used for both unordered and ordered
|
||||
type collectionOut struct {
|
||||
Context any
|
||||
Summary string
|
||||
Type string
|
||||
Items []any
|
||||
Id string
|
||||
TotalItems int
|
||||
First *collectionPageOut
|
||||
Context any `json:"@context,omitempty"`
|
||||
Summary string `json:"summary,omitempty"`
|
||||
Type string `json:"type"`
|
||||
Items []any `json:"items,omitempty"`
|
||||
Id string `json:"id"`
|
||||
TotalItems int `json:"totalItems"`
|
||||
First string `json:"first"`
|
||||
}
|
||||
|
||||
// Used for both unordered and ordered
|
||||
type collectionPageOut struct {
|
||||
Context any
|
||||
Type string
|
||||
Id string
|
||||
PartOf string
|
||||
Next string
|
||||
Items []any
|
||||
Context any `json:"@context,omitempty"`
|
||||
Type string `json:"type"`
|
||||
Id string `json:"id"`
|
||||
PartOf string `json:"partOf"`
|
||||
Next string `json:"next,omitempty"`
|
||||
Previous string `json:"prev,omitempty"`
|
||||
Items []any `json:"items"`
|
||||
}
|
||||
|
||||
// Unordered collections handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue