feat: integrate unified payment and wallet refunds
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package gas
|
||||
package gas
|
||||
|
||||
import (
|
||||
"strings"
|
||||
@@ -45,14 +45,14 @@ func listWalletChild(ctx *gin.Context, model any, table string) {
|
||||
}
|
||||
|
||||
func ListWalletBank(ctx *gin.Context) { listWalletChild(ctx, &models.WalletBank{}, "wallet_bank") }
|
||||
func ListWalletPayment(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.WalletPayment{}, "wallet_payment")
|
||||
func ListPaymentOrder(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.PaymentOrder{}, "payment_order")
|
||||
}
|
||||
func ListWalletRecord(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.WalletRecord{}, "wallet_record")
|
||||
}
|
||||
func ListWalletRefund(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.WalletRefund{}, "wallet_refund")
|
||||
func ListPaymentRefund(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.PaymentRefund{}, "payment_refund")
|
||||
}
|
||||
func ListWalletApplyCash(ctx *gin.Context) {
|
||||
listWalletChild(ctx, &models.WalletApplyCash{}, "wallet_apply_cash")
|
||||
|
||||
Reference in New Issue
Block a user