bottin-ag/apiresponse/apiresponse.go

34 lines
743 B
Go
Raw Normal View History

// Package apiresponse provides response types for API routes
package apiresponse
import "codeberg.org/vlbeaudoin/voki/response"
2023-09-16 23:21:27 -04:00
// HealthGET is the response type for `GET /v:version/health/ http/1.1`
type HealthGET struct {
response.ResponseWithError
Data struct {
BottinStatus string
}
}
// ScanGET is the response type for `GET /v:version/scan/ http/1.1`
type ScanGET struct {
response.ResponseWithError
Data struct {
IsScanned bool
}
}
// ScanPOST is the response type for `POST /v:version/scan/ http/1.1`
type ScanPOST struct {
response.ResponseWithError
}
2023-09-19 18:25:12 -04:00
// DecompteGET is the response type for `GET /v:version/decompte/ http/1.1`
type DecompteGET struct {
response.ResponseWithError
Data struct {
Decompte int
}
}