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