mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
add repositories and fixed services
This commit is contained in:
@@ -11,3 +11,11 @@ type NewTransactionTypeBody struct {
|
||||
Name string `json:"name" form:"name"`
|
||||
Type string `json:"type" form:"type"`
|
||||
}
|
||||
|
||||
func (body *NewTransactionTypeBody) ToTransactionType() *TransactionType {
|
||||
tm := new(TransactionType)
|
||||
tm.Init()
|
||||
tm.Name = body.Name
|
||||
tm.Type = body.Type
|
||||
return tm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user