Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BaseURL is the base URL for the API BaseURL string = "http://api.pay.atishoo.cn" CREATEORDER string = "/api/order/create" REFUNDORDER string = "/api/order/refund" TRANSFERORDER string = "/api/order/transfer" CREATE_GRANT_QR_TEXT string = "/api/auth/qr" GET_USER_INFO string = "/api/auth/profile" GET_USER_PHONE string = "/api/auth/phone" )
View Source
const SUCCESS = "SUCCESS"
Variables ¶
View Source
var SUCCESS_RESPONSE = CashierResponse{ Code: 1, Msg: SUCCESS, }
Functions ¶
func NewShouyinTodayClient ¶
Types ¶
type CashierResponse ¶
type CreateOrder ¶
type CreateQrLinkData ¶
type OrderSuccessNotifyData ¶
type OrderSuccessNotifyData struct { TradeNo string `json:"trade_no"` User int64 `json:"user"` Title string `json:"title"` Description string `json:"description"` Time int64 `json:"time"` Money int64 `json:"money"` Appid string `json:"appid"` Attach string `json:"attach"` Noncestr string `json:"noncestr"` Sign string `json:"sign"` Status string `json:"status"` }
type QrGrantStatusNotifyData ¶
type QrGrantStatusNotifyData struct { Code string `json:"code"` Attach string `json:"attach"` Status string `json:"status"` UniqueId string `json:"unique_id"` Noncestr string `json:"noncestr"` Timestamp int64 `json:"timestamp"` Sign string `json:"sign"` }
func (*QrGrantStatusNotifyData) GetAuthCode ¶
func (obj *QrGrantStatusNotifyData) GetAuthCode() string
func (*QrGrantStatusNotifyData) IsCancel ¶
func (obj *QrGrantStatusNotifyData) IsCancel() bool
func (*QrGrantStatusNotifyData) IsGrant ¶
func (obj *QrGrantStatusNotifyData) IsGrant() bool
func (*QrGrantStatusNotifyData) IsInvalid ¶
func (obj *QrGrantStatusNotifyData) IsInvalid() bool
func (*QrGrantStatusNotifyData) IsScan ¶
func (obj *QrGrantStatusNotifyData) IsScan() bool
type RefundOrderData ¶
type TransferPostData ¶
type UserInfoData ¶
type UserPhoneData ¶
type UserPhoneData struct { UserInfoData Phone string `json:"phone"` }
Click to show internal directories.
Click to hide internal directories.