Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ConfigApp(userID string, apiKey string) *Client
- func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)
- func (c *Client) DefaultHttp()
- func (c *Client) ElectricityBillOrder(ctx context.Context, notMustParams ...gorequest.Params) (*ElectricityBillOrderResult, error)
- func (c *Client) GetApiKey() string
- func (c *Client) GetUserID() string
- func (c *Client) PhoneBillOrder(ctx context.Context, notMustParams ...gorequest.Params) (*PhoneBillOrderResult, error)
- func (c *Client) SetHttp(app *gorequest.App)
- type ClientConfig
- type ElectricityBillOrderResponse
- type ElectricityBillOrderResult
- type PhoneBillOrderResponse
- type PhoneBillOrderResult
Constants ¶
View Source
const (
LogTable = "aswzk"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func (*Client) ConfigSLogClientFun ¶
func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)
ConfigSLogClientFun 日志配置
func (*Client) ElectricityBillOrder ¶
func (c *Client) ElectricityBillOrder(ctx context.Context, notMustParams ...gorequest.Params) (*ElectricityBillOrderResult, error)
ElectricityBillOrder 电费下单
func (*Client) PhoneBillOrder ¶
func (c *Client) PhoneBillOrder(ctx context.Context, notMustParams ...gorequest.Params) (*PhoneBillOrderResult, error)
PhoneBillOrder 话费下单
type ClientConfig ¶
ClientConfig 实例配置
type ElectricityBillOrderResponse ¶
type ElectricityBillOrderResponse struct { Errno int64 `json:"errno"` // 错误码,0代表成功,非0代表失败 Errmsg string `json:"errmsg"` // 错误描述 Data []struct { Id int64 `json:"id,omitempty"` CityName string `json:"city_name"` // 地区名称 Sort int64 `json:"sort"` // 排序 Initial string `json:"initial"` // 首字母 NeedYtype int64 `json:"need_ytype"` // 是否三要素认证 NeedCity int64 `json:"need_city"` // 是否需要选择城市(当此开关打开以后才有下面的城市列表) City []struct { Id int64 `json:"id,omitempty"` CityName string `json:"city_name"` // 城市名称 Initial string `json:"initial"` // 首字母 } `json:"city"` // 支持的地级市 } `json:"data,omitempty"` }
type ElectricityBillOrderResult ¶
type ElectricityBillOrderResult struct { Result ElectricityBillOrderResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
type PhoneBillOrderResponse ¶
type PhoneBillOrderResponse struct { Errno int64 `json:"errno"` // 错误码,0代表成功,非0代表失败 Errmsg string `json:"errmsg"` // 错误描述 Data []struct { Id int64 `json:"id,omitempty"` CityName string `json:"city_name"` // 地区名称 Sort int64 `json:"sort"` // 排序 Initial string `json:"initial"` // 首字母 NeedYtype int64 `json:"need_ytype"` // 是否三要素认证 NeedCity int64 `json:"need_city"` // 是否需要选择城市(当此开关打开以后才有下面的城市列表) City []struct { Id int64 `json:"id,omitempty"` CityName string `json:"city_name"` // 城市名称 Initial string `json:"initial"` // 首字母 } `json:"city"` // 支持的地级市 } `json:"data,omitempty"` }
type PhoneBillOrderResult ¶
type PhoneBillOrderResult struct { Result PhoneBillOrderResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.