Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Myaktion Go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emanuel Petrinovic
Myaktion Go
Commits
37c60dc0
Commit
37c60dc0
authored
2 months ago
by
Emanuel Petrinovic
Browse files
Options
Downloads
Patches
Plain Diff
add json mapping to modells
parent
2978693d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/myaktion/model/account.go
+3
-3
3 additions, 3 deletions
src/myaktion/model/account.go
src/myaktion/model/campaign.go
+8
-8
8 additions, 8 deletions
src/myaktion/model/campaign.go
src/myaktion/model/donation.go
+5
-5
5 additions, 5 deletions
src/myaktion/model/donation.go
with
16 additions
and
16 deletions
src/myaktion/model/account.go
+
3
−
3
View file @
37c60dc0
package
model
package
model
type
Account
struct
{
type
Account
struct
{
Name
string
Name
string
`json:name`
BankName
string
BankName
string
`json:bankname`
Number
string
Number
string
`json:number`
}
}
This diff is collapsed.
Click to expand it.
src/myaktion/model/campaign.go
+
8
−
8
View file @
37c60dc0
package
model
package
model
type
Campaign
struct
{
type
Campaign
struct
{
ID
uint
ID
uint
`json:id`
Name
string
Name
string
`json:name`
OrganizerName
string
OrganizerName
string
`json:organizername`
TargetAmmount
float64
TargetAmmount
float64
`json:targetammount`
DonationMinimum
float64
DonationMinimum
float64
`json:donationminimum`
AmmountDonatedSoFar
float64
AmmountDonatedSoFar
float64
`json: ammountdonatedsofar`
Donations
[]
Donation
Donations
[]
Donation
`json: donations`
Account
Account
Account
`account`
}
}
This diff is collapsed.
Click to expand it.
src/myaktion/model/donation.go
+
5
−
5
View file @
37c60dc0
package
model
package
model
type
Donation
struct
{
type
Donation
struct
{
Ammount
float64
Ammount
float64
`json:ammount`
DonorName
string
DonorName
string
`json:donorname`
ReceiptRequested
bool
ReceiptRequested
bool
`json:receiptrequested`
Status
Status
Status
`json:status`
Account
Account
Account
`json:account`
}
}
type
Status
string
type
Status
string
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment