itemofday

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateRecord added in v1.68.0

type CandidateRecord struct {
	ItemID int64 `db:"id"`
	Count  int64 `db:"p_count"`
}

type NextDate

type NextDate struct {
	Date time.Time
	Free bool
}

type Repository

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

func NewRepository

func NewRepository(db *goqu.Database) *Repository

func (*Repository) CandidateQuery added in v1.68.0

func (s *Repository) CandidateQuery() *goqu.SelectDataset

func (*Repository) IsAvailableDate added in v1.68.0

func (s *Repository) IsAvailableDate(ctx context.Context, date time.Time) (bool, error)

func (*Repository) NextDates

func (s *Repository) NextDates(ctx context.Context) ([]NextDate, error)

func (*Repository) Pick added in v1.68.0

func (s *Repository) Pick(ctx context.Context) (bool, error)

func (*Repository) SetItemOfDay added in v1.68.0

func (s *Repository) SetItemOfDay(ctx context.Context, dateTime time.Time, itemID int64, userID int64) (bool, error)

func (*Repository) SetMinPictures added in v1.68.0

func (s *Repository) SetMinPictures(value int)

Jump to

Keyboard shortcuts

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