Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) PowerCardInfo(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilCardAdd(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilCardDel(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilCardEdit(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilCardInfo(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilOrderPush(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestOilOrderQuery(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestPowerAddCard(notMustParams ...gorequest.Params) *RestPowerAddCardResult
- func (c *Client) RestPowerCancel(orderNumber string) *RestPowerCancelResult
- func (c *Client) RestPowerDelCard(cardId string) *RestPowerDelCardResult
- func (c *Client) RestPowerEditCard(notMustParams ...gorequest.Params) (body []byte, err error)
- func (c *Client) RestPowerPushOrder(notMustParams ...gorequest.Params) *RestPowerPushOrderResult
- func (c *Client) RestPowerQuery(orderNumber string) *RestPowerQueryResult
- func (c *Client) RestRechargeCancel(orderNumber string) *RestRechargeCancelResult
- func (c *Client) RestRechargeMobileInfo(orderNumber string) *RestRechargeMobileInfoResult
- func (c *Client) RestRechargePushOrder(notMustParams ...gorequest.Params) *RestRechargePushOrderResult
- func (c *Client) RestRechargeQuery(orderNumber string) *RestRechargeQueryResult
- func (c *Client) RestUserQuery() *RestUserQueryResult
- type ConfigClient
- type RestPowerAddCardResponse
- type RestPowerAddCardResult
- type RestPowerCancelResponse
- type RestPowerCancelResult
- type RestPowerDelCardResponse
- type RestPowerDelCardResult
- type RestPowerPushOrderResponse
- type RestPowerPushOrderResult
- type RestPowerQueryResponse
- type RestPowerQueryResult
- type RestRechargeCancelResponse
- type RestRechargeCancelResult
- type RestRechargeMobileInfoResponse
- type RestRechargeMobileInfoResult
- type RestRechargePushOrderResponse
- type RestRechargePushOrderResult
- type RestRechargeQueryResponse
- type RestRechargeQueryResult
- type RestUserQueryResponse
- type RestUserQueryResult
Constants ¶
const (
CodeSuccess = "0000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.47
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v1.0.47
func NewClient(config *ConfigClient) (*Client, error)
func (*Client) PowerCardInfo ¶ added in v1.0.47
PowerCardInfo 电费充值卡详情 https://open.wikeyun.cn/#/apiDocument/9/document/333
func (*Client) RestOilCardAdd ¶ added in v1.0.47
RestOilCardAdd 添加充值卡
func (*Client) RestOilCardDel ¶ added in v1.0.47
RestOilCardDel 油卡删除
func (*Client) RestOilCardEdit ¶ added in v1.0.47
RestOilCardEdit 编辑充值卡
func (*Client) RestOilCardInfo ¶ added in v1.0.47
RestOilCardInfo 油卡详情
func (*Client) RestOilOrderPush ¶ added in v1.0.47
RestOilOrderPush 充值下单
func (*Client) RestOilOrderQuery ¶ added in v1.0.47
RestOilOrderQuery 订单查询
func (*Client) RestPowerAddCard ¶ added in v1.0.47
func (c *Client) RestPowerAddCard(notMustParams ...gorequest.Params) *RestPowerAddCardResult
RestPowerAddCard 添加电费充值卡 https://open.wikeyun.cn/#/apiDocument/9/document/326
func (*Client) RestPowerCancel ¶ added in v1.0.47
func (c *Client) RestPowerCancel(orderNumber string) *RestPowerCancelResult
RestPowerCancel 电费订单取消 https://open.wikeyun.cn/#/apiDocument/9/document/323
func (*Client) RestPowerDelCard ¶ added in v1.0.47
func (c *Client) RestPowerDelCard(cardId string) *RestPowerDelCardResult
RestPowerDelCard 删除电费充值卡 https://open.wikeyun.cn/#/apiDocument/9/document/330
func (*Client) RestPowerEditCard ¶ added in v1.0.47
RestPowerEditCard 编辑电费充值卡 https://open.wikeyun.cn/#/apiDocument/9/document/329
func (*Client) RestPowerPushOrder ¶ added in v1.0.47
func (c *Client) RestPowerPushOrder(notMustParams ...gorequest.Params) *RestPowerPushOrderResult
RestPowerPushOrder 电费充值API https://open.wikeyun.cn/#/apiDocument/9/document/311
func (*Client) RestPowerQuery ¶ added in v1.0.47
func (c *Client) RestPowerQuery(orderNumber string) *RestPowerQueryResult
RestPowerQuery 电费订单查询 https://open.wikeyun.cn/#/apiDocument/9/document/313
func (*Client) RestRechargeCancel ¶ added in v1.0.47
func (c *Client) RestRechargeCancel(orderNumber string) *RestRechargeCancelResult
RestRechargeCancel 话费订单取消 https://open.wikeyun.cn/#/apiDocument/9/document/300
func (*Client) RestRechargeMobileInfo ¶ added in v1.0.47
func (c *Client) RestRechargeMobileInfo(orderNumber string) *RestRechargeMobileInfoResult
RestRechargeMobileInfo 查询手机归属地信息以及是否携号转网 https://open.wikeyun.cn/#/apiDocument/9/document/374
func (*Client) RestRechargePushOrder ¶ added in v1.0.47
func (c *Client) RestRechargePushOrder(notMustParams ...gorequest.Params) *RestRechargePushOrderResult
RestRechargePushOrder 话费充值推送 https://open.wikeyun.cn/#/apiDocument/9/document/298
func (*Client) RestRechargeQuery ¶ added in v1.0.47
func (c *Client) RestRechargeQuery(orderNumber string) *RestRechargeQueryResult
RestRechargeQuery 话费订单查询 https://open.wikeyun.cn/#/apiDocument/9/document/299
func (*Client) RestUserQuery ¶ added in v1.0.47
func (c *Client) RestUserQuery() *RestUserQueryResult
RestUserQuery 用户信息 https://open.wikeyun.cn/#/apiDocument/10/document/336
type ConfigClient ¶ added in v1.0.47
type RestPowerAddCardResponse ¶ added in v1.0.44
type RestPowerAddCardResponse struct { Code string `json:"code"` Msg string `json:"msg"` Time string `json:"time"` Data struct { CardNum string `json:"card_num"` StoreId string `json:"store_id"` CreateTime int `json:"create_time"` Type int `json:"type"` // 缴费单位 CmsUid int `json:"cms_uid"` Province string `json:"province"` // 缴费省份 City string `json:"city"` // 缴费城市 Id string `json:"id"` // 缴费卡编号 } `json:"data"` }
type RestPowerAddCardResult ¶ added in v1.0.44
type RestPowerAddCardResult struct { Result RestPowerAddCardResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestPowerCancelResponse ¶ added in v1.0.47
type RestPowerCancelResult ¶ added in v1.0.47
type RestPowerCancelResult struct { Result RestPowerCancelResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestPowerDelCardResponse ¶ added in v1.0.47
type RestPowerDelCardResult ¶ added in v1.0.47
type RestPowerDelCardResult struct { Result RestPowerDelCardResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestPowerPushOrderResponse ¶ added in v1.0.44
type RestPowerPushOrderResult ¶ added in v1.0.44
type RestPowerPushOrderResult struct { Result RestPowerPushOrderResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestPowerQueryResponse ¶ added in v1.0.44
type RestPowerQueryResponse struct { Code string `json:"code"` Msg string `json:"msg"` Time string `json:"time"` Data struct { OrderNumber string `json:"order_number"` OrderNo string `json:"order_no"` CardId string `json:"card_id"` Amount int `json:"amount"` CostPrice string `json:"cost_price"` Fanli string `json:"fanli"` Status int `json:"status"` ArrivedAmount int64 `json:"arrived_amount"` } `json:"data"` }
type RestPowerQueryResult ¶ added in v1.0.44
type RestPowerQueryResult struct { Result RestPowerQueryResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestRechargeCancelResponse ¶ added in v1.0.47
type RestRechargeCancelResult ¶ added in v1.0.47
type RestRechargeCancelResult struct { Result RestRechargeCancelResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestRechargeMobileInfoResponse ¶ added in v1.0.47
type RestRechargeMobileInfoResponse struct { Code string `json:"code"` Msg string `json:"msg"` Time string `json:"time"` Data struct { Status string `json:"status"` Oisp string `json:"oisp"` Nisp string `json:"nisp"` Number string `json:"number"` Extend struct { AreaNum string `json:"area_num"` Isp string `json:"isp"` Prov string `json:"prov"` City string `json:"city"` PostCode string `json:"post_code"` AreaCode string `json:"area_code"` CardProvCode string `json:"card_prov_code"` CardCityCode string `json:"card_city_code"` Lng string `json:"lng"` Lat string `json:"lat"` CityCode string `json:"city_code"` CityShortCode string `json:"city_short_code"` } `json:"extend"` } `json:"data"` }
type RestRechargeMobileInfoResult ¶ added in v1.0.47
type RestRechargeMobileInfoResult struct { Result RestRechargeMobileInfoResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestRechargePushOrderResponse ¶ added in v1.0.44
type RestRechargePushOrderResult ¶ added in v1.0.44
type RestRechargePushOrderResult struct { Result RestRechargePushOrderResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestRechargeQueryResponse ¶ added in v1.0.44
type RestRechargeQueryResponse struct { Code string `json:"code"` Msg string `json:"msg"` Time string `json:"time"` Data struct { OrderNumber string `json:"order_number"` OrderNo string `json:"order_no"` Mobile string `json:"mobile"` Amount int `json:"amount"` CostPrice string `json:"cost_price"` Fanli string `json:"fanli"` Status int `json:"status"` OrgOrderNumber string `json:"org_order_number"` } `json:"data"` }
type RestRechargeQueryResult ¶ added in v1.0.44
type RestRechargeQueryResult struct { Result RestRechargeQueryResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type RestUserQueryResponse ¶ added in v1.0.44
type RestUserQueryResult ¶ added in v1.0.44
type RestUserQueryResult struct { Result RestUserQueryResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
Source Files ¶
- client.go
- const.go
- request.go
- rest.oil.add_card.go
- rest.oil.card_info.go
- rest.oil.del_card.go
- rest.oil.push_order.go
- rest.oil.query.go
- rest.oiledit_card.go
- rest.power.add_card.go
- rest.power.cancel.go
- rest.power.card_info.go
- rest.power.del_card.go
- rest.power.edit_card.go
- rest.power.push_order.go
- rest.power.query.go
- rest.recharge.cancel.go
- rest.recharge.mobileInfo.go
- rest.recharge.push_order.go
- rest.recharge.query.go
- rest.user.query.go
- sign.go