-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: xy <[email protected]>
- Loading branch information
Showing
11 changed files
with
101 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package helper | ||
|
||
type Request struct { | ||
AppID int64 `json:"appID"` | ||
Sign string `json:"sign"` | ||
PayMethod string `json:"payMethod"` | ||
Amount string `json:"amount"` | ||
User string `json:"user"` | ||
PayAppName string `json:"payAppName,omitempty"` | ||
Currency string `json:"currency,omitempty"` | ||
AmountOptions []string `json:"amountOptions,omitempty"` | ||
ExchangeRate float64 `json:"exchangeRate,omitempty"` | ||
TaxRate float64 `json:"taxRate,omitempty"` | ||
TradeNO string `json:"tradeNO,omitempty"` | ||
SessionID string `json:"sessionID,omitempty"` | ||
OrderID string `json:"orderID,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package helper | ||
|
||
type PaymentDetails struct { | ||
OrderID string `bson:"orderID"` | ||
User string `bson:"user"` | ||
Amount string `bson:"amount"` | ||
Currency string `bson:"currency"` | ||
PayTime string `bson:"payTime"` | ||
PayMethod string `bson:"payMethod"` | ||
AppID int64 `bson:"appID"` | ||
Status string `bson:"status"` | ||
} | ||
|
||
type OrderDetails struct { | ||
OrderID string `bson:"orderID"` | ||
User string `bson:"user"` | ||
Amount string `bson:"amount"` | ||
PayTime string `bson:"paytime"` | ||
PayMethod string `bson:"payMethod"` | ||
AppID int64 `bson:"appID"` | ||
DetailsData map[string]interface{} `bson:"detailsdata"` | ||
} | ||
|
||
type App struct { | ||
AppID int64 `bson:"appID"` | ||
Sign string `bson:"sign"` | ||
PayAppName string `bson:"payAppName"` | ||
Methods []string `bson:"methods"` | ||
} | ||
|
||
type BillDetail struct { | ||
OrderID string `bson:"orderID"` | ||
Amount string `bson:"amount"` | ||
Currency string `bson:"currency"` | ||
PayTime string `bson:"payTime"` | ||
PayMethod string `bson:"payMethod"` | ||
Status string `bson:"status"` | ||
} | ||
|
||
type PayMethodDetail struct { | ||
PayMethod string `bson:"payMethod"` | ||
Currency string `bson:"currency"` | ||
AmountOptions []string `bson:"amountOptions"` | ||
ExchangeRate float64 `bson:"exchangeRate"` | ||
TaxRate float64 `bson:"taxRate"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters