wikeyun

package
v1.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
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

func (c *Client) PowerCardInfo(notMustParams ...gorequest.Params) (body []byte, err error)

PowerCardInfo 电费充值卡详情 https://open.wikeyun.cn/#/apiDocument/9/document/333

func (*Client) RestOilCardAdd added in v1.0.47

func (c *Client) RestOilCardAdd(notMustParams ...gorequest.Params) (body []byte, err error)

RestOilCardAdd 添加充值卡

func (*Client) RestOilCardDel added in v1.0.47

func (c *Client) RestOilCardDel(notMustParams ...gorequest.Params) (body []byte, err error)

RestOilCardDel 油卡删除

func (*Client) RestOilCardEdit added in v1.0.47

func (c *Client) RestOilCardEdit(notMustParams ...gorequest.Params) (body []byte, err error)

RestOilCardEdit 编辑充值卡

func (*Client) RestOilCardInfo added in v1.0.47

func (c *Client) RestOilCardInfo(notMustParams ...gorequest.Params) (body []byte, err error)

RestOilCardInfo 油卡详情

func (*Client) RestOilOrderPush added in v1.0.47

func (c *Client) RestOilOrderPush(notMustParams ...gorequest.Params) (body []byte, err error)

RestOilOrderPush 充值下单

func (*Client) RestOilOrderQuery added in v1.0.47

func (c *Client) RestOilOrderQuery(notMustParams ...gorequest.Params) (body []byte, err error)

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

func (c *Client) RestPowerEditCard(notMustParams ...gorequest.Params) (body []byte, err error)

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 ConfigClient struct {
	StoreId      int               // 店铺ID
	AppKey       int               // key
	AppSecret    string            // secret
	MongoDb      *dorm.MongoClient // 日志数据库
	PgsqlDb      *gorm.DB          // 日志数据库
	DatabaseName string            // 库名
}

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 RestPowerCancelResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

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 RestPowerDelCardResponse struct {
	Data string `json:"data"`
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
}

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 RestPowerPushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		OrderNumber string `json:"order_number"`
	} `json:"data"`
}

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 RestRechargeCancelResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

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 RestRechargePushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		OrderNumber string `json:"order_number"`
	} `json:"data"`
}

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 RestUserQueryResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Id     string `json:"id"`
		Avatar string `json:"avatar"`
		Money  string `json:"money"`
		Mobile string `json:"mobile"`
	} `json:"data"`
}

type RestUserQueryResult added in v1.0.44

type RestUserQueryResult struct {
	Result RestUserQueryResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
	Err    error                 // 错误
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL