entity

package
v0.0.0-...-6e60df0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ecommerce

type Ecommerce struct {
	ID                     int64
	Name                   string
	SiteUrl                string
	DiscountPriceSelector  string
	OriginalPriceSelector  string
	NameSelector           string
	ReadySelector          *string
	SecondaryPriceSelector *string
	DateCreated            time.Time
}

type EcommerceService

type EcommerceService interface {
	TableName() string

	GetAllEcommerce() []Ecommerce

	GetEcommerceById(id int64) (*Ecommerce, *gorm.DB)
}

type Item

type Item struct {
	ID                     int64
	Name                   string
	Url                    string
	LastPrice              *int
	LowestPrice            *int
	Status                 int8
	DateCreated            time.Time
	EcommerceID            int8
	EcommerceUrl           string
	EcommerceName          string
	DiscountPriceSelector  *string
	OriginalPriceSelector  *string
	SecondaryPriceSelector *string // for item without discount and different page
	LastDiscount           *int    // in percentage
	HighestDiscount        *int    // in percentage
	NameSelector           *string
	ReadySelector          *string
}

type ItemService

type ItemService interface {
	GetAllItems() []Item
}

Jump to

Keyboard shortcuts

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