Add types.DbTransfer
This commit is contained in:
parent
66f83cf3aa
commit
bf9628d1d7
|
@ -89,3 +89,11 @@ type DbExpense struct {
|
||||||
Comment string `json:"comment" example:"pizza"`
|
Comment string `json:"comment" example:"pizza"`
|
||||||
Date time.Time `json:"date" example:"29/11/2001 12:00"`
|
Date time.Time `json:"date" example:"29/11/2001 12:00"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DbTransfer struct {
|
||||||
|
ID uint `json:"id" example:"1"`
|
||||||
|
FromCardID uint `json:"from_card_id" example:"1"`
|
||||||
|
ToCardID uint `json:"to_card_id" example:"1"`
|
||||||
|
Value uint64 `json:"value" example:"20000"`
|
||||||
|
Date time.Time `json:"date" example:"29/11/2001 12:00"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user