Documentation ¶
Index ¶
- func DepositGetByUser(userData *UserCore.DataUserDataType, fromInfo CoreSQLFrom.FieldsFrom, ...) (depositData FinanceDeposit.FieldsDepositType, errCode string, err error)
- func PayClientFinish(c *gin.Context, userData *UserCore.DataUserDataType, payID int64) (FinancePay.FieldsPayType, bool)
- func PayCreate(c *gin.Context, userData *UserCore.DataUserDataType, args *ArgsPayCreate) (payData FinancePay.FieldsPayType, b bool)
- func PayOwnByUser(c *gin.Context, userData *UserCore.DataUserDataType, payID int64) (FinancePay.FieldsPayType, bool)
- func ReportFailedPage(c *gin.Context, orgID int64, payID int64)
- func ReportSuccessPage(c *gin.Context, orgID int64, payID int64)
- type ArgsPayCreate
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 ¶
ReportFailedPage 支付失败后跳转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 发起新的交易请求参数
Click to show internal directories.
Click to hide internal directories.