File tree Expand file tree Collapse file tree
internal/mock_api/endpoints/charity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ var donationsScopesByMethod = map[string][]string{
3434type CharityDonations struct {}
3535
3636type GetCharityDonationsResponse struct {
37- ID string `json:"id"`
38- CampaignID string `json:"campaign_id"`
39- UserID string `json:"user_id"`
40- UserLogin string `json:"user_login"`
41- UserName string `json:"user_name"`
42- TargetAmount CharityAmount `json:"amount"`
37+ ID string `json:"id"`
38+ CampaignID string `json:"campaign_id"`
39+ UserID string `json:"user_id"`
40+ UserLogin string `json:"user_login"`
41+ UserName string `json:"user_name"`
42+ Amount CharityAmount `json:"amount"`
4343}
4444
4545func (e CharityDonations ) Path () string { return "/charity/donations" }
@@ -104,7 +104,7 @@ func getCharityDonations(w http.ResponseWriter, r *http.Request) {
104104 UserID : userCtx .UserID ,
105105 UserName : user .DisplayName ,
106106 UserLogin : user .UserLogin ,
107- TargetAmount : CharityAmount {
107+ Amount : CharityAmount {
108108 Value : rand .Intn (150000 - 300 ) + 300 , // Between $3 and $1,500
109109 DecimalPlaces : 2 ,
110110 Currency : "USD" ,
You can’t perform that action at this time.
0 commit comments