Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Product ProductService // contains filtered or unexported fields }
func NewClientWithToken ¶
type Option ¶
type Option func(shopClient *Client)
func WithRestyClient ¶
func WithRestyClient(r *resty.Client) Option
type ProductService ¶
type ProductServiceOp ¶
type ProductServiceOp struct {
// contains filtered or unexported fields
}
func (ProductServiceOp) Get ¶
func (p ProductServiceOp) Get(id string) (product Product, err error)
func (ProductServiceOp) List ¶
func (p ProductServiceOp) List(key string, query string) (products Products, err error)
func (ProductServiceOp) ListAll ¶
func (p ProductServiceOp) ListAll() (products Products, err error)
Click to show internal directories.
Click to hide internal directories.