Ajouter et implémenter PresencesGET
This commit is contained in:
parent
75b0819ae4
commit
29b4d0da31
4 changed files with 47 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
// Package apiresponse provides response types for API routes
|
||||
package apiresponse
|
||||
|
||||
import "codeberg.org/vlbeaudoin/voki/response"
|
||||
import (
|
||||
"codeberg.org/vlbeaudoin/voki/response"
|
||||
"git.agecem.com/agecem/bottin-ag/dbstruct"
|
||||
)
|
||||
|
||||
// HealthGET is the response type for `GET /v:version/health/ http/1.1`
|
||||
type HealthGET struct {
|
||||
|
@ -31,3 +34,11 @@ type DecompteGET struct {
|
|||
Decompte int
|
||||
}
|
||||
}
|
||||
|
||||
// PresencesGET is the response type for `GET /v:version/presences/ http/1.1`
|
||||
type PresencesGET struct {
|
||||
response.ResponseWithError
|
||||
Data struct {
|
||||
Presences []dbstruct.Presence
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue