Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CampaignershipRepo ¶
type CampaignershipRepo struct {
// contains filtered or unexported fields
}
func NewCampaignershipRepo ¶
func NewCampaignershipRepo(db *sqlx.DB) *CampaignershipRepo
func (*CampaignershipRepo) CloseCampaign ¶
func (c *CampaignershipRepo) CloseCampaign(id int64, reason string) (err error)
type DenormalizeRepo ¶
type DenormalizeRepo struct {
// contains filtered or unexported fields
}
func NewDenormalizeRepo ¶
func NewDenormalizeRepo(db *sqlx.DB) *DenormalizeRepo
func (*DenormalizeRepo) GetCampaignDetail ¶
func (d *DenormalizeRepo) GetCampaignDetail(id int64) (cd model.CampaignDetail, err error)
func (*DenormalizeRepo) UpdateDonatonStatus ¶
func (d *DenormalizeRepo) UpdateDonatonStatus(campaignID int64, status bool, reason string) (err error)
func (*DenormalizeRepo) UpdateTotalDonation ¶
func (d *DenormalizeRepo) UpdateTotalDonation(campaignID, totalDonation int64) (err error)
type DonationRepo ¶
type DonationRepo struct {
// contains filtered or unexported fields
}
func NewDonationRepo ¶
func NewDonationRepo(db *sqlx.DB) *DonationRepo
func (*DonationRepo) SumDonation ¶
func (d *DonationRepo) SumDonation(campaignID int64) (sum int64, err error)
Click to show internal directories.
Click to hide internal directories.