Documentation ¶
Index ¶
- type App
- func (app *App) NewParamsWith(params ...Params) Params
- func (app *App) PowerCardInfo(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilCardAdd(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilCardDel(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilCardEdit(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilCardInfo(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilOrderPush(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestOilOrderQuery(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestPowerAddCard(notMustParams ...Params) *RestPowerAddCardResult
- func (app *App) RestPowerDelCard(cardId string) (body []byte, err error)
- func (app *App) RestPowerEditCard(notMustParams ...Params) (body []byte, err error)
- func (app *App) RestPowerPushOrder(notMustParams ...Params) *RestPowerPushOrderResult
- func (app *App) RestPowerQuery(orderNumber string) *RestPowerQueryResult
- func (app *App) RestRechargePushOrder(notMustParams ...Params) *RestRechargePushOrderResult
- func (app *App) RestRechargeQuery(orderNumber string) *RestRechargeQueryResult
- func (app *App) RestUserQuery() *RestUserQueryResult
- type Params
- type RestPowerAddCardResponse
- type RestPowerAddCardResult
- type RestPowerPushOrderResponse
- type RestPowerPushOrderResult
- type RestPowerQueryResponse
- type RestPowerQueryResult
- type RestRechargePushOrderResponse
- type RestRechargePushOrderResult
- type RestRechargeQueryResponse
- type RestRechargeQueryResult
- type RestUserQueryResponse
- type RestUserQueryResult
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) PowerCardInfo ¶
PowerCardInfo 充值卡详情
func (*App) RestOilCardAdd ¶
RestOilCardAdd 添加充值卡
func (*App) RestOilCardDel ¶
RestOilCardDel 油卡删除
func (*App) RestOilCardEdit ¶
RestOilCardEdit 编辑充值卡
func (*App) RestOilCardInfo ¶
RestOilCardInfo 油卡详情
func (*App) RestOilOrderPush ¶
RestOilOrderPush 充值下单
func (*App) RestOilOrderQuery ¶
RestOilOrderQuery 订单查询
func (*App) RestPowerAddCard ¶
func (app *App) RestPowerAddCard(notMustParams ...Params) *RestPowerAddCardResult
RestPowerAddCard 添加充值卡
func (*App) RestPowerDelCard ¶
RestPowerDelCard 充值卡删除
func (*App) RestPowerEditCard ¶
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 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 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 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 RestUserQueryResult ¶
type RestUserQueryResult struct { Result RestUserQueryResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewRestUserQueryResult ¶
func NewRestUserQueryResult(result RestUserQueryResponse, body []byte, err error) *RestUserQueryResult
Source Files ¶
- app.go
- mongodb.go
- params.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.card_info.go
- rest.power.del_card.go
- rest.power.edit_card.go
- rest.power.push_order.go
- rest.power.query.go
- rest.recharge.push_order.go
- rest.recharge.query.go
- rest.user.query.go
- sign.go
Click to show internal directories.
Click to hide internal directories.