entities

package
v0.0.0-...-e2b2710 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SocialCardDiscountMultiplier = 0.95

Variables

This section is empty.

Functions

This section is empty.

Types

type PharmacyProductItem

type PharmacyProductItem struct {
	Name           string
	Price          int
	InstructionURL string
	ImgURL         string
	Comment        string
	RecipeOnly     bool
	Position       string
	Count          int
}

type Product

type Product struct {
	ID             int
	Name           string
	Price          string
	ExpirationDate time.Duration
	InstructionURL string
	ImgURL         string
	Comment        string
	RecipeOnly     bool
}

type ProductItem

type ProductItem struct {
	ID               int
	ProductID        int
	PharmacyID       int
	ReceiptID        int
	Position         string
	ManufacturedTime string
	ReservationUUID  string
	IsSold           bool
	IsExpired        bool
	Priority         int
}

type Purchase

type Purchase struct {
	Price    int
	Products []PurchaseProductItem
}

type PurchaseProductItem

type PurchaseProductItem struct {
	Name  string
	Count int
	Price int
}

type Receipt

type Receipt struct {
	ID         int
	UserID     int
	PharmacyID int
	Sum        float64
	Discount   int
}

Jump to

Keyboard shortcuts

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