Add Message and DbCard types to types
This commit is contained in:
parent
aa69960519
commit
ffc4344adf
|
@ -12,6 +12,17 @@ type Account struct {
|
||||||
Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc="`
|
Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc="`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Message struct {
|
||||||
|
Message string `json:"message" example:"Success!"`
|
||||||
|
}
|
||||||
|
|
||||||
type ErrorResponse struct {
|
type ErrorResponse struct {
|
||||||
Message string `json:"message" example:"Error: you stink"`
|
Message string `json:"message" example:"Error: you stink"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DbCard struct {
|
||||||
|
Name string `json:"name" example:"CreditCard"`
|
||||||
|
Value uint64 `json:"value" example:"1000"`
|
||||||
|
HaveCreditLine bool `json:"have_credit_line" example:"true"`
|
||||||
|
CreditLine uint64 `json:"credit_line" example:"500000"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user