referral.go 471 B

12345678910111213
  1. package repository
  2. import (
  3. "github.com/porter-dev/porter/internal/models"
  4. )
  5. // ReferralRepository represents the set of queries on the Referral model
  6. type ReferralRepository interface {
  7. CreateReferral(referral *models.Referral) (*models.Referral, error)
  8. GetReferralByReferredID(referredID uint) (*models.Referral, error)
  9. CountReferralsByProjectID(projectID uint, status string) (int64, error)
  10. UpdateReferral(referral *models.Referral) (*models.Referral, error)
  11. }