17 lines
668 B
Go
17 lines
668 B
Go
package referralservice
|
|
|
|
// import (
|
|
// "context"
|
|
|
|
// )
|
|
|
|
// type ReferralStore interface {
|
|
// GenerateReferralCode() (string, error)
|
|
// CreateReferral(ctx context.Context, userID int64, companyID int64) error
|
|
// ProcessReferral(ctx context.Context, referredPhone, referralCode string, companyID int64) error
|
|
// ProcessDepositBonus(ctx context.Context, userPhone string, amount float64) error
|
|
// ProcessBetReferral(ctx context.Context, userId int64, betAmount float64) error
|
|
// GetReferralStats(ctx context.Context, userID int64, companyID int64) (*domain.ReferralStats, error)
|
|
// GetReferralCountByID(ctx context.Context, referrerID int64) (int64, error)
|
|
// }
|