bottin-agenda/responses/responses.go

38 lines
878 B
Go
Raw Permalink Normal View History

2023-06-03 20:41:13 -04:00
package responses
import (
"git.agecem.com/agecem/bottin-agenda/models"
)
2023-06-03 20:41:13 -04:00
type GetHealthResponseData struct {
Bottin string `json:"bottin"`
Database string `json:"database"`
}
type GetHealthResponse struct {
Message string `json:"message"`
Data GetHealthResponseData `json:"data"`
}
2023-06-06 02:19:06 -04:00
type PostSeedResponse struct {
2023-06-03 20:41:13 -04:00
Message string `json:"message"`
2023-06-06 02:19:06 -04:00
}
type PostTransactionsResponseData struct {
Transactions []models.Transaction `json:"transactions"`
2023-06-06 02:19:06 -04:00
}
type PostTransactionsResponse struct {
Message string `json:"message"`
Data PostTransactionsResponseData `json:"data"`
2023-06-03 20:41:13 -04:00
}
type GetTransactionsResponseData struct {
Transactions []models.Transaction `json:"transactions"`
}
type GetTransactionsResponse struct {
Message string `json:"message"`
Data GetTransactionsResponseData `json:"data"`
}