Ajouter plusieurs responses
This commit is contained in:
parent
2c2f3de788
commit
d696afb41f
1 changed files with 19 additions and 4 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Reference in a new issue