File tree 1 file changed +7
-7
lines changed
internal/mock_api/endpoints/charity
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ var donationsScopesByMethod = map[string][]string{
34
34
type CharityDonations struct {}
35
35
36
36
type 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"`
43
43
}
44
44
45
45
func (e CharityDonations ) Path () string { return "/charity/donations" }
@@ -104,7 +104,7 @@ func getCharityDonations(w http.ResponseWriter, r *http.Request) {
104
104
UserID : userCtx .UserID ,
105
105
UserName : user .DisplayName ,
106
106
UserLogin : user .UserLogin ,
107
- TargetAmount : CharityAmount {
107
+ Amount : CharityAmount {
108
108
Value : rand .Intn (150000 - 300 ) + 300 , // Between $3 and $1,500
109
109
DecimalPlaces : 2 ,
110
110
Currency : "USD" ,
You can’t perform that action at this time.
0 commit comments