RouterFinance

package
v5.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepositGetByUser

func DepositGetByUser(userData *UserCore.DataUserDataType, fromInfo CoreSQLFrom.FieldsFrom, configMark string) (depositData FinanceDeposit.FieldsDepositType, errCode string, err error)

DepositGetByUser 获取该用户的储蓄数据结构体 如果没有会自动给创建

func PayClientFinish

func PayClientFinish(c *gin.Context, userData *UserCore.DataUserDataType, payID int64) (FinancePay.FieldsPayType, bool)

PayClientFinish 确认客户端的该交易 注意,本函数将直接给浏览器输出结构,请勿在后面再次输出内容

func PayCreate

func PayCreate(c *gin.Context, userData *UserCore.DataUserDataType, args *ArgsPayCreate) (payData FinancePay.FieldsPayType, b bool)

PayCreate 发起新的交易请求 该模块只能用于内部的模块之间交互使用,例如订单下单支付请求

func PayOwnByUser

func PayOwnByUser(c *gin.Context, userData *UserCore.DataUserDataType, payID int64) (FinancePay.FieldsPayType, bool)

PayOwnByUser 确定交易的归属权

func ReportFailedPage

func ReportFailedPage(c *gin.Context, orgID int64, payID int64)

ReportFailedPage 支付失败后跳转URL

func ReportSuccessPage

func ReportSuccessPage(c *gin.Context, orgID int64, payID int64)

ReportSuccessPage 返回的页面URL地址,并跳转到该页面地址

Types

type ArgsPayCreate

type ArgsPayCreate struct {
	//付款渠道
	PaymentChannel CoreSQLFrom.FieldsFrom
	//支付方的来源
	// 留空则代表平台方,否则为商户或加盟商
	PaymentFrom CoreSQLFrom.FieldsFrom
	//收款人来源
	TakeCreate CoreSQLFrom.FieldsFrom
	//收款渠道
	TakeChannel CoreSQLFrom.FieldsFrom
	//收款方来源
	// 留空则代表平台方,否则为商户或加盟商
	TakeFrom CoreSQLFrom.FieldsFrom
	//交易备注
	Des string
	//过期时间
	ExpireTime time.Time
	//货币
	Currency int
	//金额
	Price int64
	//扩展信息
	Params []CoreSQLConfig.FieldsConfigType
}

ArgsPayCreate 发起新的交易请求参数

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL