mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-11-11 07:41:10 +00:00
add repositories and fixed services
This commit is contained in:
@@ -11,3 +11,11 @@ type NewTransactionStatusBody struct {
|
||||
Name string `json:"name" form:"name"`
|
||||
Status string `json:"status" form:"status"`
|
||||
}
|
||||
|
||||
func (body *NewTransactionStatusBody) ToTransactionStatus() *TransactionStatus {
|
||||
tm := new(TransactionStatus)
|
||||
tm.Init()
|
||||
tm.Name = body.Name
|
||||
tm.Status = body.Status
|
||||
return tm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user