service

package
v0.0.0-...-160c400 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 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 LotteryService

type LotteryService struct {
	// contains filtered or unexported fields
}

func NewLotteryService

func NewLotteryService(ticketRepository *repository.TicketRepository, recordRepository *repository.RecordRepository) *LotteryService

func (*LotteryService) CreateRecord

func (s *LotteryService) CreateRecord(ctx context.Context, record *entity.LotteryRecord) error

func (*LotteryService) CreateTicket

func (s *LotteryService) CreateTicket(ctx context.Context, ticket *entity.LotteryTicket) error

func (*LotteryService) GenerateRecordByPeriodAndType

func (s *LotteryService) GenerateRecordByPeriodAndType(ctx context.Context, period, tp string) (entity.LotteryRecord, error)

func (LotteryService) Migration

func (s LotteryService) Migration()

func (*LotteryService) RecordByPeriodAndType

func (s *LotteryService) RecordByPeriodAndType(ctx context.Context, period, tp string) (entity.LotteryRecord, error)

func (*LotteryService) TicketByID

func (s *LotteryService) TicketByID(ctx context.Context, id int64) (entity.LotteryTicket, error)

func (*LotteryService) TicketCheck

func (s *LotteryService) TicketCheck(ctx context.Context, id int64) (entity.LotteryTicket, error)

func (*LotteryService) TicketsByPeriod

func (s *LotteryService) TicketsByPeriod(ctx context.Context, period string) ([]entity.LotteryTicket, error)

Jump to

Keyboard shortcuts

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