service

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PointsTaskService

type PointsTaskService interface {
	Update(user types.Account, promotionid string, taskid string, point int) error
	Find(user types.Account, promotionid string) (domain.UserPoints, error)
	GetAllUserPoints(promotionid string) ([]domain.UserPoints, error)
}

func NewPointsTaskService

func NewPointsTaskService(
	pointsRepo repository.Points,
	taskRepo repository.Task,
) (PointsTaskService, error)

type PromotionUserService

type PromotionUserService interface {
	Register(promotionid string, origin domain.Origin, ur *domain.UserRegistration) error
}

func NewPromotionUserService

func NewPromotionUserService(
	user user.User,
	repo repository.Promotion,
) PromotionUserService

Jump to

Keyboard shortcuts

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