wikeyun

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	StoreID   int
	AppKey    int
	AppSecret string
	ClientIP  string
	Mongo     gomongo.App // 日志数据库
}

func (*App) NewParamsWith

func (app *App) NewParamsWith(params ...Params) Params

func (*App) PowerCardInfo

func (app *App) PowerCardInfo(notMustParams ...Params) (body []byte, err error)

PowerCardInfo 充值卡详情

func (*App) RestOilCardAdd

func (app *App) RestOilCardAdd(notMustParams ...Params) (body []byte, err error)

RestOilCardAdd 添加充值卡

func (*App) RestOilCardDel

func (app *App) RestOilCardDel(notMustParams ...Params) (body []byte, err error)

RestOilCardDel 油卡删除

func (*App) RestOilCardEdit

func (app *App) RestOilCardEdit(notMustParams ...Params) (body []byte, err error)

RestOilCardEdit 编辑充值卡

func (*App) RestOilCardInfo

func (app *App) RestOilCardInfo(notMustParams ...Params) (body []byte, err error)

RestOilCardInfo 油卡详情

func (*App) RestOilOrderPush

func (app *App) RestOilOrderPush(notMustParams ...Params) (body []byte, err error)

RestOilOrderPush 充值下单

func (*App) RestOilOrderQuery

func (app *App) RestOilOrderQuery(notMustParams ...Params) (body []byte, err error)

RestOilOrderQuery 订单查询

func (*App) RestPowerAddCard

func (app *App) RestPowerAddCard(notMustParams ...Params) *RestPowerAddCardResult

RestPowerAddCard 添加充值卡

func (*App) RestPowerDelCard

func (app *App) RestPowerDelCard(cardId string) (body []byte, err error)

RestPowerDelCard 充值卡删除

func (*App) RestPowerEditCard

func (app *App) RestPowerEditCard(notMustParams ...Params) (body []byte, err error)

RestPowerEditCard 编辑充值卡

func (*App) RestPowerPushOrder

func (app *App) RestPowerPushOrder(notMustParams ...Params) *RestPowerPushOrderResult

RestPowerPushOrder 充值下单

func (*App) RestPowerQuery

func (app *App) RestPowerQuery(orderNumber string) *RestPowerQueryResult

func (*App) RestRechargePushOrder

func (app *App) RestRechargePushOrder(notMustParams ...Params) *RestRechargePushOrderResult

RestRechargePushOrder 充值请求业务参数

func (*App) RestRechargeQuery

func (app *App) RestRechargeQuery(orderNumber string) *RestRechargeQueryResult

RestRechargeQuery 查询接口

func (*App) RestUserQuery

func (app *App) RestUserQuery() *RestUserQueryResult

RestUserQuery 查询余额接口

type Params

type Params map[string]interface{}

Params 请求参数

func NewParams

func NewParams() Params

func (Params) Set

func (p Params) Set(key string, value interface{})

func (Params) SetParams

func (p Params) SetParams(params Params)

type RestPowerAddCardResponse

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

type RestPowerAddCardResult struct {
	Result RestPowerAddCardResponse // 结果
	Body   []byte                   // 内容
	Err    error                    // 错误
}

func NewRestPowerAddCardResult

func NewRestPowerAddCardResult(result RestPowerAddCardResponse, body []byte, err error) *RestPowerAddCardResult

type RestPowerPushOrderResponse

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

type RestPowerPushOrderResult struct {
	Result RestPowerPushOrderResponse // 结果
	Body   []byte                     // 内容
	Err    error                      // 错误
}

func NewRestPowerPushOrderResult

func NewRestPowerPushOrderResult(result RestPowerPushOrderResponse, body []byte, err error) *RestPowerPushOrderResult

type RestPowerQueryResponse

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

type RestPowerQueryResult struct {
	Result RestPowerQueryResponse // 结果
	Body   []byte                 // 内容
	Err    error                  // 错误
}

func NewRestPowerQueryResult

func NewRestPowerQueryResult(result RestPowerQueryResponse, body []byte, err error) *RestPowerQueryResult

type RestRechargePushOrderResponse

type RestRechargePushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		OrderNumber string `json:"order_number"`
	} `json:"data"`
}

type RestRechargePushOrderResult

type RestRechargePushOrderResult struct {
	Result RestRechargePushOrderResponse // 结果
	Body   []byte                        // 内容
	Err    error                         // 错误
}

func NewRestRechargePushOrderResult

func NewRestRechargePushOrderResult(result RestRechargePushOrderResponse, body []byte, err error) *RestRechargePushOrderResult

type RestRechargeQueryResponse

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

type RestRechargeQueryResult struct {
	Result RestRechargeQueryResponse // 结果
	Body   []byte                    // 内容
	Err    error                     // 错误
}

func NewRestRechargeQueryResult

func NewRestRechargeQueryResult(result RestRechargeQueryResponse, body []byte, err error) *RestRechargeQueryResult

type RestUserQueryResponse

type RestUserQueryResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Money string `json:"money"`
		ID    int    `json:"id"`
	} `json:"data"`
}

type RestUserQueryResult

type RestUserQueryResult struct {
	Result RestUserQueryResponse // 结果
	Body   []byte                // 内容
	Err    error                 // 错误
}

func NewRestUserQueryResult

func NewRestUserQueryResult(result RestUserQueryResponse, body []byte, err error) *RestUserQueryResult

Jump to

Keyboard shortcuts

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