Documentation
¶
Index ¶
- func InitDB(user, pass, host, port, name string) (*sqlx.DB, error)
- type LinkService
- func (s *LinkService) Create(l *shopy.Link) error
- func (s *LinkService) Delete(hash string) error
- func (s *LinkService) Get(hash string) (*shopy.Link, error)
- func (s *LinkService) Gets(first, limit int, order string) ([]*shopy.Link, error)
- func (s *LinkService) Update(l *shopy.Link, fields ...string) error
- type OrderService
- func (s *OrderService) Create(o *shopy.Order) error
- func (s *OrderService) Delete(id int) error
- func (s *OrderService) Get(id int) (*shopy.Order, error)
- func (s *OrderService) GetByPayPal(token string) (*shopy.Order, error)
- func (s *OrderService) Gets(first, limit int, order string) ([]*shopy.Order, error)
- func (s *OrderService) GetsWhere(first, limit int, order, where, sth string) ([]*shopy.Order, error)
- func (s *OrderService) Total() (int, error)
- func (s *OrderService) Update(o *shopy.Order, fields ...string) error
- type ProductService
- func (s *ProductService) Create(p *shopy.Product) error
- func (s *ProductService) Delete(id int) error
- func (s *ProductService) Get(id int) (*shopy.Product, error)
- func (s *ProductService) Gets(first, limit int, order string) ([]*shopy.Product, error)
- func (s *ProductService) GetsWhere(first, limit int, order, where, sth string) ([]*shopy.Product, error)
- func (s *ProductService) GetsWhereIn(first, limit int, order, where, in string) ([]*shopy.Product, error)
- func (s *ProductService) Total() (int, error)
- func (s *ProductService) Update(p *shopy.Product, fields ...string) error
- type PromocodeService
- func (s *PromocodeService) Create(p *shopy.Promocode) error
- func (s *PromocodeService) Delete(id int) error
- func (s *PromocodeService) Get(id int) (*shopy.Promocode, error)
- func (s *PromocodeService) GetByCode(code string) (*shopy.Promocode, error)
- func (s *PromocodeService) Gets(first, limit int, order string) ([]*shopy.Promocode, error)
- func (s *PromocodeService) Total() (int, error)
- func (s *PromocodeService) Update(p *shopy.Promocode, fields ...string) error
- type UserService
- func (s *UserService) Create(u *shopy.User) error
- func (s *UserService) Delete(id int) error
- func (s *UserService) Get(id int) (*shopy.User, error)
- func (s *UserService) GetByEmail(email string) (*shopy.User, error)
- func (s *UserService) GetByReferral(referral string) (*shopy.User, error)
- func (s *UserService) Gets(first, limit int, order string) ([]*shopy.User, error)
- func (s *UserService) Total() (int, error)
- func (s *UserService) Update(u *shopy.User, fields ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OrderService ¶
OrderService ...
func (*OrderService) GetByPayPal ¶
func (s *OrderService) GetByPayPal(token string) (*shopy.Order, error)
GetByPayPal ...
type ProductService ¶
ProductService ...
func (*ProductService) GetsWhere ¶
func (s *ProductService) GetsWhere(first, limit int, order, where, sth string) ([]*shopy.Product, error)
GetsWhere ...
func (*ProductService) GetsWhereIn ¶
func (s *ProductService) GetsWhereIn(first, limit int, order, where, in string) ([]*shopy.Product, error)
GetsWhereIn ...
type PromocodeService ¶
PromocodeService ...
func (*PromocodeService) Create ¶
func (s *PromocodeService) Create(p *shopy.Promocode) error
Create ...
func (*PromocodeService) Get ¶
func (s *PromocodeService) Get(id int) (*shopy.Promocode, error)
Get ...
func (*PromocodeService) GetByCode ¶
func (s *PromocodeService) GetByCode(code string) (*shopy.Promocode, error)
GetByCode ...
type UserService ¶
UserService ...
func (*UserService) GetByEmail ¶
func (s *UserService) GetByEmail(email string) (*shopy.User, error)
GetByEmail ...
func (*UserService) GetByReferral ¶
func (s *UserService) GetByReferral(referral string) (*shopy.User, error)
GetByReferral ...
Click to show internal directories.
Click to hide internal directories.