Ajouter route de List Transactions
Ajouter GET /v2/transactions http/1.1 Ajouter DataClient.ListTransactions() Ajouter handlers et models associés
This commit is contained in:
parent
547833cfdb
commit
afb944cbb3
4 changed files with 66 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
package responses
|
||||
|
||||
import bottinmodels "git.agecem.com/agecem/bottin/v5/models"
|
||||
import (
|
||||
"git.agecem.com/agecem/bottin-agenda/models"
|
||||
bottinmodels "git.agecem.com/agecem/bottin/v5/models"
|
||||
)
|
||||
|
||||
type PostSeedResponse struct {
|
||||
Message string `json:"message"`
|
||||
|
@ -23,3 +26,12 @@ type PostTransactionsResponse struct {
|
|||
Message string `json:"message"`
|
||||
Data PostTransactionsResponseData `json:"data"`
|
||||
}
|
||||
|
||||
type GetTransactionsResponseData struct {
|
||||
Transactions []models.Transaction `json:"transactions"`
|
||||
}
|
||||
|
||||
type GetTransactionsResponse struct {
|
||||
Message string `json:"message"`
|
||||
Data GetTransactionsResponseData `json:"data"`
|
||||
}
|
||||
|
|
Reference in a new issue