Ajouter et implémenter PresencesGET

This commit is contained in:
Victor Lacasse-Beaudoin 2023-10-02 14:08:03 -04:00
parent 75b0819ae4
commit 29b4d0da31
4 changed files with 47 additions and 1 deletions

View file

@ -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
}
}