Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecordRepository ¶
type RecordRepository struct {
xdb.Repository
}
func NewRecordRepository ¶
func NewRecordRepository(db conn.NirvanaDB) *RecordRepository
func (*RecordRepository) ItemByPeriodAndType ¶
func (r *RecordRepository) ItemByPeriodAndType(ctx context.Context, period, tp string) (record entity.LotteryRecord, err error)
type TicketRepository ¶
type TicketRepository struct {
xdb.Repository
}
func NewTicketRepository ¶
func NewTicketRepository(db conn.NirvanaDB) *TicketRepository
func (*TicketRepository) ItemByID ¶
func (r *TicketRepository) ItemByID(ctx context.Context, id int64) (entity entity.LotteryTicket, err error)
func (*TicketRepository) ItemsByPeriod ¶
func (r *TicketRepository) ItemsByPeriod(ctx context.Context, period string) (entities []entity.LotteryTicket, err error)
Click to show internal directories.
Click to hide internal directories.