repo

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: 2 Imported by: 0

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) Create

func (d *DonationRepo) Create(dn model.Donation) (err error)

func (*DonationRepo) SumDonation

func (d *DonationRepo) SumDonation(campaignID int64) (sum int64, err error)

Jump to

Keyboard shortcuts

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