Documentation ¶
Index ¶
- type CheckOrderRequest
- type CheckOrderResponse
- type CheckParams
- type GetGiftPremiumLinkRequest
- type GetGiftPremiumLinkResponse
- type GetTonPaymentInfoRequest
- type GetTonPaymentInfoResponse
- type InitGiftPremiumRequest
- type InitGiftPremiumResponse
- type SearchPremiumGiftRecipientRequest
- type SearchPremiumGiftRecipientResponse
- type SearchPremiumGiftRecipientResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckOrderRequest ¶
type CheckOrderResponse ¶
type CheckOrderResponse struct {
Confirmed bool `json:"confirmed"`
}
func CheckOrder ¶
func CheckOrder(id string) (result CheckOrderResponse, err error)
CheckOrder 检查订单是否成功
type CheckParams ¶
type CheckParams struct {
Id string `json:"id"`
}
type GetGiftPremiumLinkResponse ¶
type GetGiftPremiumLinkResponse struct { Ok bool `json:"ok"` Link string `json:"link"` QrLink string `json:"qr_link"` CheckMethod string `json:"check_method"` CheckParams CheckParams `json:"check_params"` ExpireAfter int `json:"expire_after"` }
func GetGiftPremiumLink ¶
func GetGiftPremiumLink(reqId string) (result GetGiftPremiumLinkResponse, err error)
type GetTonPaymentInfoRequest ¶
type GetTonPaymentInfoRequest struct {
Cookie string `header:"cookie"`
}
type GetTonPaymentInfoResponse ¶
type GetTonPaymentInfoResponse struct { Version string `json:"version"` Body struct { Type string `json:"type"` Params struct { ValidUntil int `json:"valid_until"` Messages []struct { Address string `json:"address"` Amount uint64 `json:"amount"` Payload string `json:"payload"` } `json:"messages"` Source string `json:"source"` } `json:"params"` ResponseOptions struct { CallbackURL string `json:"callback_url"` Broadcast bool `json:"broadcast"` } `json:"response_options"` ExpiresSec int `json:"expires_sec"` } `json:"body"` }
func GetTonPaymentInfo ¶
func GetTonPaymentInfo(id string) (result GetTonPaymentInfoResponse, err error)
GetTonPaymentInfo GET获取收款地址和 payload参数
type InitGiftPremiumRequest ¶
type InitGiftPremiumResponse ¶
type InitGiftPremiumResponse struct { ReqId string `json:"req_id"` Myself bool `json:"myself"` Amount string `json:"amount"` ItemTitle string `json:"item_title"` Content string `json:"content"` Button string `json:"button"` }
func InitGiftPremium ¶
func InitGiftPremium(recipient string, duration int) (result InitGiftPremiumResponse, err error)
type SearchPremiumGiftRecipientResponse ¶
type SearchPremiumGiftRecipientResponse struct { Ok bool `json:"ok"` Error string `json:"error"` Found SearchPremiumGiftRecipientResponseBody `json:"found"` }
func SearchPremiumGiftRecipient ¶
func SearchPremiumGiftRecipient(username string, duration int) (result SearchPremiumGiftRecipientResponse, err error)
SearchPremiumGiftRecipient telegram用户名查询
Click to show internal directories.
Click to hide internal directories.