Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelType ¶ added in v0.1.0
type ChannelType uint8
const ( ChannelTypeCredit ChannelType = 1 ChannelTypeWechat ChannelType = 2 )
func (ChannelType) ToUnit8 ¶ added in v0.1.0
func (c ChannelType) ToUnit8() uint8
type PaymentChannel ¶
type PaymentChannel struct { Type ChannelType Desc string }
type PaymentRecord ¶
type PaymentRecord struct { PaymentID int64 // 第三方那边返回的 ID TxnID string PaymentNO3rd string Description string Channel ChannelType Amount int64 PaidAt int64 Status PaymentStatus WechatCodeURL string }
type PaymentStatus ¶ added in v0.1.0
type PaymentStatus uint8
const ( PaymentStatusUnpaid PaymentStatus = 1 PaymentStatusProcessing PaymentStatus = 2 PaymentStatusPaidSuccess PaymentStatus = 3 PaymentStatusPaidFailed PaymentStatus = 4 PaymentStatusRefund PaymentStatus = 5 PaymentStatusTimeoutClosed PaymentStatus = 6 )
func (PaymentStatus) ToUint8 ¶ added in v0.1.0
func (s PaymentStatus) ToUint8() uint8
Click to show internal directories.
Click to hide internal directories.