Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuyerRepository ¶
type BuyerRepository interface { GetABuyer(id uint) (domain.Buyer, error) InsertABuyer(buyer domain.Buyer) error }
BuyerRepository ...
func NewBuyerRepository ¶
func NewBuyerRepository(newDB *gorm.DB) BuyerRepository
NewBuyerRepository ...
type CityRepository ¶
type CityRepository interface { InsertCity(city domain.City) GetACityByCityCode(cityCode string) (city domain.City, err error) }
CityRepository ...
func NewCityRepository ¶
func NewCityRepository(newDB *gorm.DB, provinceRepo ProvinceRepository) CityRepository
NewCityRepository ...
type CountryRepository ¶
type CountryRepository interface { InsertCountry(countryCode string, countryName string) GetACountryByCountryCode(countryCode string) (country domain.Country, err error) }
CountryRepository ...
func NewCountryRepository ¶
func NewCountryRepository(newDB *gorm.DB) CountryRepository
NewCountryRepository ...
type ProductsRepository ¶
ProductsRepository ...
func NewProductsRepository ¶
func NewProductsRepository(newDB *gorm.DB) ProductsRepository
NewProductsRepository ...
type ProvinceRepository ¶
type ProvinceRepository interface { InsertProvince(province domain.Province) GetAProvinceByProvinceCode(provinceCode string) (province domain.Province, err error) }
ProvinceRepository ...
func NewProvinceRepository ¶
func NewProvinceRepository(newDB *gorm.DB) ProvinceRepository
NewProvinceRepository ...
type SellerRepository ¶
type SellerRepository interface { GetASeller(id uint) (domain.Seller, error) InsertASeller(Seller domain.Seller) error }
SellerRepository ...
func NewSellerRepository ¶
func NewSellerRepository(newDB *gorm.DB) SellerRepository
NewSellerRepository ...
type UserRepository ¶
type UserRepository interface { GetAUser(id uint) (domain.User, error) InsertAUser(user domain.User) error GetAUserFromMobile(mobile string) (domain.User, error) }
UserRepository ...
func NewUserRepository ¶
func NewUserRepository(newDB *gorm.DB) UserRepository
NewUserRepository ...
type VariantsRepository ¶
type VariantsRepository interface { InsertVariant(size string) GetAVariantFromSize(size string) (variant domain.Variants, err error) }
VariantsRepository ...
func NewVariantsRepository ¶
func NewVariantsRepository(newDB *gorm.DB) VariantsRepository
NewVariantsRepository ...
type ZipCodeRepository ¶
type ZipCodeRepository interface { GetZipCode(zipCode string) (zipcode domain.ZipCode, err error) InsertZipCode(zipCode domain.ZipCode) error }
ZipCodeRepository ...
func NewZipCodeRepository ¶
func NewZipCodeRepository(newDB *gorm.DB, cityRepo CityRepository) ZipCodeRepository
NewZipCodeRepository ...
Click to show internal directories.
Click to hide internal directories.