queries

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.1.5

func New(embed embed.FS) (err error)

New is ...

Types

type AuthQueries

type AuthQueries struct {
	*sql.DB
}

AuthQueries is ...

func (*AuthQueries) GetPasswordByEmail

func (q *AuthQueries) GetPasswordByEmail(email string) (string, error)

GetPasswordByEmail is ...

type Base

Base is ...

func DB

func DB() *Base

DB is ...

type CartQueries

type CartQueries struct {
	*sql.DB
}

CartQueries is ...

func (*CartQueries) AddCart

func (q *CartQueries) AddCart(cart *models.Cart) error

AddCart is ...

func (*CartQueries) Cart added in v0.1.5

func (q *CartQueries) Cart(cartId string) (*models.Cart, error)

Carts is ...

func (*CartQueries) Carts

func (q *CartQueries) Carts() ([]*models.Cart, error)

Carts is ...

func (*CartQueries) PaymentList added in v0.1.5

func (q *CartQueries) PaymentList() (map[string]bool, error)

PaymentList is ...

func (*CartQueries) UpdateCart

func (q *CartQueries) UpdateCart(cart *models.Cart) error

UpdateCart is ...

type InstallQueries

type InstallQueries struct {
	*sql.DB
}

InstallQueries is ...

func (*InstallQueries) Install

func (q *InstallQueries) Install(i *models.Install) error

Install is ...

type PageQueries

type PageQueries struct {
	*sql.DB
}

PageQueries is ...

func (*PageQueries) AddPage

func (q *PageQueries) AddPage(page *models.Page) (*models.Page, error)

AddPage is ...

func (*PageQueries) DeletePage

func (q *PageQueries) DeletePage(id string) error

DeletePage is ...

func (*PageQueries) IsPage

func (q *PageQueries) IsPage(slug string) bool

IsPage is ...

func (*PageQueries) ListPages

func (q *PageQueries) ListPages(private bool, idList ...string) ([]models.Page, error)

ListPages is ...

func (*PageQueries) Page

func (q *PageQueries) Page(slug string) (*models.Page, error)

Page is ...

func (*PageQueries) UpdatePage

func (q *PageQueries) UpdatePage(page *models.Page) error

UpdatePage is ...

func (*PageQueries) UpdatePageContent

func (q *PageQueries) UpdatePageContent(page *models.Page) error

UpdatePageContent is ...

type ProductQueries

type ProductQueries struct {
	*sql.DB
}

ProductQueries is ...

func (*ProductQueries) AddDigitalData

func (q *ProductQueries) AddDigitalData(productID, content string) (*models.Data, error)

AddDigitalData

func (*ProductQueries) AddDigitalFile

func (q *ProductQueries) AddDigitalFile(productID, fileUUID, fileExt, origName string) (*models.File, error)

AddDigitalFile is ...

func (*ProductQueries) AddImage

func (q *ProductQueries) AddImage(productID, fileUUID, fileExt, origName string) (*models.File, error)

AddImage is ...

func (*ProductQueries) AddProduct

func (q *ProductQueries) AddProduct(product *models.Product) (*models.Product, error)

AddProduct is ...

func (*ProductQueries) DeleteDigital

func (q *ProductQueries) DeleteDigital(productID, digitalID string) error

DeleteDigital is ...

func (*ProductQueries) DeleteImage

func (q *ProductQueries) DeleteImage(productID, imageID string) error

DeleteImage is ...

func (*ProductQueries) DeleteProduct

func (q *ProductQueries) DeleteProduct(id string) error

DeleteProduct is ...

func (*ProductQueries) IsProduct

func (q *ProductQueries) IsProduct(slug string) bool

IsProduct is ...

func (*ProductQueries) ListProducts

func (q *ProductQueries) ListProducts(private bool, idList ...models.CartProduct) (*models.Products, error)

ListProducts is ...

func (*ProductQueries) Product

func (q *ProductQueries) Product(private bool, id string) (*models.Product, error)

Product is ...

func (*ProductQueries) ProductDigital

func (q *ProductQueries) ProductDigital(productID string) (*models.Digital, error)

ProductDigitals is ...

func (*ProductQueries) ProductImages

func (q *ProductQueries) ProductImages(id string) (*[]models.File, error)

ProductImages is ...

func (*ProductQueries) UpdateActive

func (q *ProductQueries) UpdateActive(id string) error

UpdateActive is ...

func (*ProductQueries) UpdateDigital

func (q *ProductQueries) UpdateDigital(digital *models.Data) error

UpdateDigital is ...

func (*ProductQueries) UpdatePageActive

func (q *ProductQueries) UpdatePageActive(id string) error

UpdatePageActive is ...

func (*ProductQueries) UpdateProduct

func (q *ProductQueries) UpdateProduct(product *models.Product) error

UpdateProduct is ...

type SettingQueries

type SettingQueries struct {
	*sql.DB
}

SettingQueries is ...

func (*SettingQueries) AddSession

func (q *SettingQueries) AddSession(key, value string, expires int64) error

AddSession is ...

func (*SettingQueries) CheckSubdomain

func (q *SettingQueries) CheckSubdomain(name string) bool

CheckSubdomain is ...

func (*SettingQueries) DeleteSession

func (q *SettingQueries) DeleteSession(key string) error

DeleteSession is ...

func (*SettingQueries) GetCurrency

func (q *SettingQueries) GetCurrency() string

GetCurrency is ...

func (*SettingQueries) GetDomain

func (q *SettingQueries) GetDomain() string

GetDomain is ...

func (*SettingQueries) GetSession

func (q *SettingQueries) GetSession(key string) (string, error)

GetSession is ...

func (*SettingQueries) IsInstalled

func (q *SettingQueries) IsInstalled() bool

IsInstalled is ...

func (*SettingQueries) ListSocials

func (q *SettingQueries) ListSocials() (*models.Social, error)

ListSocials is ...

func (*SettingQueries) SettingBySection added in v0.1.5

func (q *SettingQueries) SettingBySection(section string) (any, error)

SettingBySection is ...

func (*SettingQueries) SettingJWT

func (q *SettingQueries) SettingJWT() (*jwtutil.Setting, error)

SettingJWT is settings

func (*SettingQueries) SettingMail

func (q *SettingQueries) SettingMail() (*models.SMTP, error)

SettingTestSMTP is ...

func (*SettingQueries) SettingValueByKey

func (q *SettingQueries) SettingValueByKey(key string) (*models.SettingName, error)

SettingValueByKey is ...

func (*SettingQueries) Settings

func (q *SettingQueries) Settings(private bool) (*models.Setting, error)

Settings is ...

func (*SettingQueries) UpdateSession

func (q *SettingQueries) UpdateSession(key, value string, expires int64) error

UpdateSession is ...

func (*SettingQueries) UpdateSettingValueByKey

func (q *SettingQueries) UpdateSettingValueByKey(setting *models.SettingName) error

UpdateSettingValueByKey is ...

func (*SettingQueries) UpdateSettings

func (q *SettingQueries) UpdateSettings(settings *models.Setting, section string) error

UpdateSettings is ...

Jump to

Keyboard shortcuts

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