bottin-agenda/responses/responses.go

38 lines
895 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"
bottinmodels "git.agecem.com/agecem/bottin/v5/models"
)
2023-06-03 20:41:13 -04:00
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 GetMembreResponseData struct {
Membre bottinmodels.Membre `json:"membre"`
}
type GetMembreResponse struct {
Message string `json:"message"`
Data GetMembreResponseData `json:"data"`
}
type PostTransactionsResponseData struct {
RowsInserted int64 `json:"rows_inserted"`
}
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"`
}