Documentation ¶
Index ¶
- func New(embed embed.FS) (err error)
- type AuthQueries
- type Base
- type CartQueries
- type InstallQueries
- type PageQueries
- func (q *PageQueries) AddPage(page *models.Page) (*models.Page, error)
- func (q *PageQueries) DeletePage(id string) error
- func (q *PageQueries) IsPage(slug string) bool
- func (q *PageQueries) ListPages(private bool, idList ...string) ([]models.Page, error)
- func (q *PageQueries) Page(slug string) (*models.Page, error)
- func (q *PageQueries) UpdatePage(page *models.Page) error
- func (q *PageQueries) UpdatePageContent(page *models.Page) error
- type ProductQueries
- func (q *ProductQueries) AddDigitalData(productID, content string) (*models.Data, error)
- func (q *ProductQueries) AddDigitalFile(productID, fileUUID, fileExt, origName string) (*models.File, error)
- func (q *ProductQueries) AddImage(productID, fileUUID, fileExt, origName string) (*models.File, error)
- func (q *ProductQueries) AddProduct(product *models.Product) (*models.Product, error)
- func (q *ProductQueries) DeleteDigital(productID, digitalID string) error
- func (q *ProductQueries) DeleteImage(productID, imageID string) error
- func (q *ProductQueries) DeleteProduct(id string) error
- func (q *ProductQueries) IsProduct(slug string) bool
- func (q *ProductQueries) ListProducts(private bool, idList ...models.CartProduct) (*models.Products, error)
- func (q *ProductQueries) Product(private bool, id string) (*models.Product, error)
- func (q *ProductQueries) ProductDigital(productID string) (*models.Digital, error)
- func (q *ProductQueries) ProductImages(id string) (*[]models.File, error)
- func (q *ProductQueries) UpdateActive(id string) error
- func (q *ProductQueries) UpdateDigital(digital *models.Data) error
- func (q *ProductQueries) UpdatePageActive(id string) error
- func (q *ProductQueries) UpdateProduct(product *models.Product) error
- type SettingQueries
- func (q *SettingQueries) AddSession(key, value string, expires int64) error
- func (q *SettingQueries) CheckSubdomain(name string) bool
- func (q *SettingQueries) DeleteSession(key string) error
- func (q *SettingQueries) GetCurrency() string
- func (q *SettingQueries) GetDomain() string
- func (q *SettingQueries) GetSession(key string) (string, error)
- func (q *SettingQueries) IsInstalled() bool
- func (q *SettingQueries) ListSocials() (*models.Social, error)
- func (q *SettingQueries) SettingBySection(section string) (any, error)
- func (q *SettingQueries) SettingJWT() (*jwtutil.Setting, error)
- func (q *SettingQueries) SettingMail() (*models.SMTP, error)
- func (q *SettingQueries) SettingValueByKey(key string) (*models.SettingName, error)
- func (q *SettingQueries) Settings(private bool) (*models.Setting, error)
- func (q *SettingQueries) UpdateSession(key, value string, expires int64) error
- func (q *SettingQueries) UpdateSettingValueByKey(setting *models.SettingName) error
- func (q *SettingQueries) UpdateSettings(settings *models.Setting, section string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthQueries ¶
AuthQueries is ...
func (*AuthQueries) GetPasswordByEmail ¶
func (q *AuthQueries) GetPasswordByEmail(email string) (string, error)
GetPasswordByEmail is ...
type Base ¶
type Base struct { SettingQueries AuthQueries InstallQueries PageQueries ProductQueries CartQueries }
Base is ...
type CartQueries ¶
CartQueries is ...
func (*CartQueries) Cart ¶ added in v0.1.5
func (q *CartQueries) Cart(cartId string) (*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 ¶
InstallQueries is ...
type PageQueries ¶
PageQueries is ...
func (*PageQueries) DeletePage ¶
func (q *PageQueries) DeletePage(id string) error
DeletePage 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 ¶
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 ¶
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) 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 ¶
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) GetSession ¶
func (q *SettingQueries) GetSession(key string) (string, error)
GetSession 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 ...