Skip to content
Snippets Groups Projects
Commit 69dec25a authored by Emanuel Petrinovic's avatar Emanuel Petrinovic
Browse files

add models

parent 142b8a7a
No related branches found
No related tags found
No related merge requests found
package model
type Account struct {
Name string
BankName string
Number string
}
package model
type Campaign struct {
Name string
OrganizerName string
TargetAmmount float64
DonationMinimum float64
AmmountDonatedSoFar float64
Donations []Donation
Account
}
package model
type Donation struct {
Ammount float64
DonorName string
ReceiptRequested bool
Campaign
}
type Status string
const (
TRANSFERRED Status = "TRANSFERRD"
In_PROCESS Status = "IN PROCESS"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment