db

package
v0.0.0-...-0ce3674 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AutoPreLoad = "gorm:auto_preload"
)

Variables

View Source
var (
	Store *gorm.DB
)

Functions

func AddSubscriber

func AddSubscriber(subscriber *schema.HubSubscriber) error

func CreateTables

func CreateTables() error

func DeleteSubscriber

func DeleteSubscriber(id string) error

func FindSubscriber

func FindSubscriber(id string) (*schema.HubSubscriber, error)

func GetGeographicAddress

func GetGeographicAddress(id string) (*models.GeographicAddress, error)

func GetGeographicAddressByFieldedAddress

func GetGeographicAddressByFieldedAddress(req *models.FieldedAddressRequest) ([]*schema.GeographicAddress, error)

func GetGeographicAddressByFormattedAddress

func GetGeographicAddressByFormattedAddress(param *models.FormattedAddressRequest) ([]*schema.GeographicAddress, error)

func GetGeographicAddressByIds

func GetGeographicAddressByIds(ids []string) ([]*schema.GeographicAddress, error)

func GetGeographicSite

func GetGeographicSite(id string) (*models.GeographicSite, error)

func GetGeographicSiteByParams

func GetGeographicSiteByParams(params *gs.GeographicSiteFindParams) ([]*schema.GeographicSite, error)

func GetProduct

func GetProduct(id string) (*models.Product, error)

func GetProductOfferingQualification

func GetProductOfferingQualification(id string) (*models.ProductOfferingQualification, error)

func GetProductOrder

func GetProductOrder(id string) (*models.ProductOrder, error)

func GetProductOrderByParams

func GetProductOrderByParams(param *po.ProductOrderFindParams) ([]*models.ProductOrderSummary, error)

func GetProductsByParams

func GetProductsByParams(params *product.ProductFindParams) ([]*schema.Product, error)

func GetQuote

func GetQuote(id string) (*schema.Quote, error)

func GetTx

func GetTx() *gorm.DB

func ListGeographicAddress

func ListGeographicAddress() ([]*models.GeographicAddress, error)

func ListSubscribers

func ListSubscribers(atType string) ([]*schema.HubSubscriber, error)

func ProductOrderCreateToProductOrder

func ProductOrderCreateToProductOrder(param *models.ProductOrderCreate) (*schema.ProductOrder, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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