parent
4657ccd8c8
commit
81117223d2
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilCardAdd 添加充值卡
|
||||
func (app *App) RestOilCardAdd(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilCardAdd(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/addCard", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/addCard", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilCardInfo 油卡详情
|
||||
func (app *App) RestOilCardInfo(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilCardInfo(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/cardInfo", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/cardInfo", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilCardDel 油卡删除
|
||||
func (app *App) RestOilCardDel(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilCardDel(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/delCard", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/delCard", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilOrderPush 充值下单
|
||||
func (app *App) RestOilOrderPush(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilOrderPush(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/pushOrder", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/pushOrder", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilOrderQuery 订单查询
|
||||
func (app *App) RestOilOrderQuery(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilOrderQuery(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/query", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/query", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
package wikeyun
|
||||
|
||||
// RestOilCardEdit 编辑充值卡
|
||||
func (app *App) RestOilCardEdit(notMustParams ...Params) (body []byte, err error) {
|
||||
func (c *Client) RestOilCardEdit(notMustParams ...Params) (body []byte, err error) {
|
||||
// 参数
|
||||
params := app.NewParamsWith(notMustParams...)
|
||||
params := c.NewParamsWith(notMustParams...)
|
||||
// 请求
|
||||
request, err := app.request("https://router.wikeyun.cn/rest/Oil/editCard", params)
|
||||
request, err := c.request("https://router.wikeyun.cn/rest/Oil/editCard", params)
|
||||
return request.ResponseBody, err
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
package wikeyun
|
||||
|
||||
const Version = "1.0.0"
|
||||
const Version = "1.0.1"
|
||||
|
Loading…
Reference in new issue