Documentation ¶
Index ¶
- func Sign(partnerKey, baseString string) string
- type Config
- func (c *Config) GetApiPath(apiPath string) string
- func (c *Config) GetApiURL(apiPath string) string
- func (c *Config) GetCommonParam(method string) string
- func (c *Config) Http(requestMethod, method string, data interface{}, out interface{}) error
- func (c *Config) HttpGet(method string, data interface{}, out interface{}) error
- func (c *Config) HttpPost(method string, data interface{}, out interface{}) error
- func (c *Config) HttpPostFile(method string, data interface{}, out interface{}) error
- func (c *Config) SetShopInfo(shopInfo *commonentity.ShopInfo) *Config
- func (c *Config) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { BaseURL string `json:"baseURL"` Version string `json:"version"` PartnerID int64 `json:"partner_id"` PartnerKey string `json:"partner_key"` RedirectURL string `json:"redirect_url"` // contains filtered or unexported fields }
Config
func (*Config) GetCommonParam ¶
GetCommonParam
func (*Config) HttpPostFile ¶
HttpPostFile
func (*Config) SetShopInfo ¶
func (c *Config) SetShopInfo(shopInfo *commonentity.ShopInfo) *Config
SetShopInfo
Click to show internal directories.
Click to hide internal directories.