repository

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SortFieldStartTime = "start_time"
	SortFieldPriority  = "priority"
	SortAsc            = "asc"
	SortDesc           = "desc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Points

type Points interface {
	Update(user types.Account, item domain.Item, version int) error
	Find(user types.Account, promotionid string) (domain.UserPoints, error)
	FindAll(promotionid string) ([]domain.UserPoints, error)
}

type Promotion

type Promotion interface {
	FindById(string) (domain.Promotion, error)
	FindAll() ([]domain.Promotion, error)
	UserRegister(promotionid string, user types.Account, origin domain.Origin, version int) error
	FindByCustom(*PromotionsQuery) ([]domain.Promotion, error)
	Count(*PromotionsQuery) (int64, error)
}

type PromotionsQuery added in v1.1.0

type PromotionsQuery struct {
	domain.Promotion
	Status domain.PromotionStatus
	Offset int64
	Limit  int64
	Sort   [][2]string
}

type Task

type Task interface {
	Find(id string) (domain.Task, error)
	FindAll() ([]domain.Task, error)
}

Jump to

Keyboard shortcuts

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