bottin-ag/apiresponse/apiresponse.go
Victor Lacasse-Beaudoin 309942921d Ajouter apihandler.ScanGET
Ajouter *bottin.Data#ApiClient à APIHandler

Implémenter BottinStatus dans apihandler.HealthGET
2023-09-16 15:05:13 -04:00

26 lines
523 B
Go

// Package apiresponse provides response types for API routes
package apiresponse
// Response defines the basic response types fields
type Response struct {
Error string
Message string
StatusCode int
}
// HealthGET is the response type for `GET /v:version/health/ http/1.1`
type HealthGET struct {
Response
Data struct {
BottinStatus string
DBStatus string
}
}
// ScanGET is the response type for `GET /v:version/scan/ http/1.1`
type ScanGET struct {
Response
Data struct {
IsScanned bool
}
}