Documentation ¶
Index ¶
- type LotteryService
- func (s *LotteryService) CreateRecord(ctx context.Context, record *entity.LotteryRecord) error
- func (s *LotteryService) CreateTicket(ctx context.Context, ticket *entity.LotteryTicket) error
- func (s *LotteryService) GenerateRecordByPeriodAndType(ctx context.Context, period, tp string) (entity.LotteryRecord, error)
- func (s LotteryService) Migration()
- func (s *LotteryService) RecordByPeriodAndType(ctx context.Context, period, tp string) (entity.LotteryRecord, error)
- func (s *LotteryService) TicketByID(ctx context.Context, id int64) (entity.LotteryTicket, error)
- func (s *LotteryService) TicketCheck(ctx context.Context, id int64) (entity.LotteryTicket, error)
- func (s *LotteryService) TicketsByPeriod(ctx context.Context, period string) ([]entity.LotteryTicket, error)
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)
Click to show internal directories.
Click to hide internal directories.