Versions in this module Expand all Collapse all v1 v1.0.216 Jul 5, 2024 Changes in this version + const ErrnoSuccess + const LogTable + type CheckResponse struct + Errmsg string + Errno int64 + type CheckResponseContent struct + Data []struct{ ... } + Errmsg string + Errno int64 + type CheckResult struct + Body []byte + Http gorequest.Response + Result CheckResponse + func (cr *CheckResult) ParsingContent() (CheckResponseContent, error) + type Client struct + func NewClient(config *ClientConfig) (*Client, error) + func (c *Client) Check(ctx context.Context, outTradeNums string, notMustParams ...gorequest.Params) (*CheckResult, error) + func (c *Client) ConfigClient(config *ClientConfig) + func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun) + func (c *Client) DefaultHttp() + func (c *Client) Elecity(ctx context.Context, notMustParams ...gorequest.Params) (*ElecityResult, error) + func (c *Client) GetApiKey() string + func (c *Client) GetApiURL() string + func (c *Client) GetUserID() int64 + func (c *Client) Price(ctx context.Context, id int64, notMustParams ...gorequest.Params) (*PriceResult, error) + func (c *Client) Product(ctx context.Context, notMustParams ...gorequest.Params) (*ProductResult, error) + func (c *Client) Recharge(ctx context.Context, outTradeNum string, productID int64, mobile string, ...) (*RechargeResult, error) + func (c *Client) Remove(ctx context.Context, outTradeNums string, notMustParams ...gorequest.Params) (*RemoveResult, error) + func (c *Client) SetApiKey(apiKey string) + func (c *Client) SetApiURL(apiURL string) + func (c *Client) SetHttp(app *gorequest.App) + func (c *Client) SetUserID(userID int64) + func (c *Client) Typecate(ctx context.Context, notMustParams ...gorequest.Params) (*TypecateResult, error) + func (c *Client) User(ctx context.Context, notMustParams ...gorequest.Params) (*UserResult, error) + type ClientConfig struct + ApiKey string + ApiURL string + UserID int64 + type ElecityResponse struct + Data []struct{ ... } + Errmsg string + Errno int64 + type ElecityResult struct + Body []byte + Http gorequest.Response + Result ElecityResponse + type PriceResponse struct + Data struct{ ... } + Errmsg string + Errno int64 + type PriceResult struct + Body []byte + Http gorequest.Response + Result PriceResponse + type ProductResponse struct + Data []struct{ ... } + Errmsg string + Errno int64 + type ProductResult struct + Body []byte + Http gorequest.Response + Result ProductResponse + type RechargeResponse struct + Errmsg string + Errno int64 + type RechargeResponseContent struct + Data struct{ ... } + Errmsg string + Errno int64 + type RechargeResult struct + Body []byte + Http gorequest.Response + Result RechargeResponse + func (cr *RechargeResult) ParsingContent() (RechargeResponseContent, error) + type RemoveResponse struct + Data struct{} + Errmsg string + Errno int64 + type RemoveResult struct + Body []byte + Http gorequest.Response + Result RemoveResponse + type TypecateResponse struct + Data []struct{ ... } + Errmsg string + Errno int64 + type TypecateResult struct + Body []byte + Http gorequest.Response + Result TypecateResponse + type UserResponse struct + Data struct{ ... } + Errmsg string + Errno int64 + type UserResult struct + Body []byte + Http gorequest.Response + Result UserResponse