order

package
v0.0.0-...-3b9bdc6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderRuleDay

type OrderRuleDay struct {
	EventID string
	Day     int64
}

type OrderRuleDayRepository

type OrderRuleDayRepository interface {
	FindManyByEventID(ctx context.Context, eventID string, tx *sql.Tx) ([]OrderRuleDay, error)
	Save(ctx context.Context, rule OrderRuleDay, tx *sql.Tx) error
	Delete(ctx context.Context, eventID string, tx *sql.Tx) error
}

func NewOrderRuleDayRepository

func NewOrderRuleDayRepository(logger *logrus.Logger, db *sql.DB) OrderRuleDayRepository

type OrderRuleRangeDate

type OrderRuleRangeDate struct {
	EventID   string
	StartDate time.Time
	EndDate   time.Time
}

type OrderRuleRangeDateRepository

type OrderRuleRangeDateRepository interface {
	FindByEventID(ctx context.Context, eventID string, tx *sql.Tx) (OrderRuleRangeDate, error)
	Save(ctx context.Context, rule OrderRuleRangeDate, tx *sql.Tx) error
	Update(ctx context.Context, eventID string, rule OrderRuleRangeDate, tx *sql.Tx) error
}

func NewOrderRuleRangeDateRepository

func NewOrderRuleRangeDateRepository(logger *logrus.Logger, db *sql.DB) OrderRuleRangeDateRepository

Jump to

Keyboard shortcuts

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