payloads

package
v0.0.0-...-d51fbc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CampaignDetailPayload

type CampaignDetailPayload struct {
	ID             int64  `json:"id"`
	Name           string `json:"name"`
	TotalDonation  int64  `json:"total_donation"`
	TargetDonation int64  `json:"target_donation"`
	IsClosed       bool   `json:"is_closed"`
	Reason         string `json:"reason"`
}

type CreateDonationMessage

type CreateDonationMessage struct {
	CampaignID     int64  `json:"campaign_id"`
	DonorName      string `json:"donor_name"`
	Amount         int    `json:"amount"`
	TargetDonation int64  `json:"target_donation"`
	TotalDonation  int64  `json:"total_donation"`
}

type DonationReq

type DonationReq struct {
	CampaignID int64  `json:"campaign_id"`
	DonorName  string `json:"donor_name"`
	Amount     int    `json:"amount"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL