Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Balance ¶
type Balance struct { OpenID string AppID string OfferID string Ts int ZoneID string Pf string UserIP string AccessToken string Secret string HTTPRequest *utils.HTTPClient Debug bool }
Balance model
func (*Balance) GetBalance ¶
func (b *Balance) GetBalance() (*RespBalance, error)
GetBalance get balance
type CancelPay ¶
type CancelPay struct { OpenID string AppID string OfferID string Ts int ZoneID string Pf string UserIP string BillNo string PayItem string AccessToken string Secret string HTTPRequest *utils.HTTPClient Debug bool }
CancelPay model
type CommonError ¶
CommonError model
type Order ¶
type Order struct { AppID string OrderNo string OutTradeNo string AccessToken string HTTPRequest *utils.HTTPClient Debug bool }
Order model
type OrderDetail ¶
type OrderDetail struct { OutTradeNo string `json:"out_trade_no"` OrderNo string `json:"order_no"` OpenID string `json:"openid"` CreateTime int `json:"create_time"` Amount int `json:"amount"` Status int `json:"status"` ZoneID string `json:"zone_id"` Env int `json:"env"` PayTime int `json:"pay_time"` }
OrderDetail struct
type Pay ¶
type Pay struct { OpenID string AppID string OfferID string Ts int ZoneID string Pf string UserIP string Amt int BillNo string PayItem string AppRemark string AccessToken string Secret string HTTPRequest *utils.HTTPClient Debug bool }
Pay model
type Present ¶
type Present struct { OpenID string AppID string OfferID string Ts int ZoneID string Pf string UserIP string BillNo string PresentCounts int AccessToken string Secret string HTTPRequest *utils.HTTPClient Debug bool }
Present model
type RespBalance ¶
type RespBalance struct { CommonError Balance int `json:"balance"` GenBalance int `json:"gen_balance"` FirstSave int `json:"first_save"` SaveAmt int `json:"save_amt"` SaveSum int `json:"save_sum"` CostSum int `json:"cost_sum"` PresentSum int `json:"present_sum"` }
RespBalance response
type RespCancelPay ¶
type RespCancelPay struct { CommonError BillNo string `json:"bill_no"` }
RespCancelPay response
type RespOrder ¶
type RespOrder struct { CommonError PayForOrder OrderDetail `json:"payfororder"` }
RespOrder response
type RespPay ¶
type RespPay struct { CommonError BillNo string `json:"bill_no"` Balance int `json:"balance"` UsedGenAmt int `json:"used_gen_amt"` }
RespPay response
type RespPresent ¶
type RespPresent struct { CommonError Balance string `json:"balance"` BillNo string `json:"bill_no"` }
RespPresent response
Source Files ¶
Click to show internal directories.
Click to hide internal directories.