From d696afb41fe15154d1d4794b0e40f1da10d8ab83 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 6 Jun 2023 02:19:06 -0400 Subject: [PATCH] Ajouter plusieurs responses --- responses/responses.go | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/responses/responses.go b/responses/responses.go index 64406af..f703f97 100644 --- a/responses/responses.go +++ b/responses/responses.go @@ -2,9 +2,24 @@ package responses import bottinmodels "git.agecem.com/agecem/bottin/v5/models" -type GetMembreResponse struct { +type PostSeedResponse struct { Message string `json:"message"` - Data struct { - Membre bottinmodels.Membre - } `json:"data"` +} + +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"` }