vote

package
v0.0.0-...-b248145 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usecase

type Usecase interface {
	CreateVote(ctx context.Context, presentationID uuid.UUID, param model.CreateVoteRequestDTO) error
	GetPollVotes(ctx context.Context, presentationID, pollID uuid.UUID) ([]db.GetVotesRow, error)
}

Usecase contains the function of business logic of domain voter

func Initialize

func Initialize(
	store db.Store,
) Usecase

Initialize takes all necessary service for domain vote to run the business logic of domain vote

Jump to

Keyboard shortcuts

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