Documentation ¶
Index ¶
- Constants
- Variables
- func AddSubscriber(subscriber *schema.HubSubscriber) error
- func CreateTables() error
- func DeleteSubscriber(id string) error
- func FindSubscriber(id string) (*schema.HubSubscriber, error)
- func GetGeographicAddress(id string) (*models.GeographicAddress, error)
- func GetGeographicAddressByFieldedAddress(req *models.FieldedAddressRequest) ([]*schema.GeographicAddress, error)
- func GetGeographicAddressByFormattedAddress(param *models.FormattedAddressRequest) ([]*schema.GeographicAddress, error)
- func GetGeographicAddressByIds(ids []string) ([]*schema.GeographicAddress, error)
- func GetGeographicSite(id string) (*models.GeographicSite, error)
- func GetGeographicSiteByParams(params *gs.GeographicSiteFindParams) ([]*schema.GeographicSite, error)
- func GetProduct(id string) (*models.Product, error)
- func GetProductOfferingQualification(id string) (*models.ProductOfferingQualification, error)
- func GetProductOrder(id string) (*models.ProductOrder, error)
- func GetProductOrderByParams(param *po.ProductOrderFindParams) ([]*models.ProductOrderSummary, error)
- func GetProductsByParams(params *product.ProductFindParams) ([]*schema.Product, error)
- func GetQuote(id string) (*schema.Quote, error)
- func GetTx() *gorm.DB
- func ListGeographicAddress() ([]*models.GeographicAddress, error)
- func ListSubscribers(atType string) ([]*schema.HubSubscriber, error)
- func ProductOrderCreateToProductOrder(param *models.ProductOrderCreate) (*schema.ProductOrder, error)
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 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 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 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.
Click to show internal directories.
Click to hide internal directories.