RouterOrgFinance

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePayToOrg

func CreatePayToOrg(c *gin.Context, userData *UserCore.DataUserDataType, args *ArgsCreatePayToOrg) (payData FinancePay.FieldsPayType, failedCode string, failedMsg string, err error)

CreatePayToOrg 发起给组织付款的请求

func GetDepositDataAndDefaultMark

func GetDepositDataAndDefaultMark(orgID int64) (depositData FinanceDeposit.FieldsDepositType, defaultDepositMark string, err error)

GetDepositDataAndDefaultMark 获取组织默认收款配置项

func PayCreateOrgToUser

func PayCreateOrgToUser(args *ArgsPayCreateOrgToUser) (payData FinancePay.FieldsPayType, errCode string, err error)

PayCreateOrgToUser 商户给用户付款

Types

type ArgsCreatePayToOrg

type ArgsCreatePayToOrg struct {
	//付款渠道系统
	PaySystem string `json:"paySystem,omitempty"`
	//付款标识码
	SaveMark string `json:"saveMark,omitempty"`
	//组织ID
	OrgID int64 `json:"orgID,omitempty"`
	//货币
	Currency int `json:"currency,omitempty"`
	//金额
	Price int64 `json:"price,omitempty"`
	//备注
	Des string `json:"des,omitempty"`
}

ArgsCreatePayToOrg 发起给组织付款的请求参数

type ArgsPayCreateOrgToUser

type ArgsPayCreateOrgToUser struct {
	//商户ID
	OrgID int64 `json:"orgID"`
	//商户名称
	OrgName string `json:"orgName"`
	//目标用户ID
	UserID int64 `json:"userID"`
	//目标用户昵称
	UserName string `json:"userName"`
	//收款渠道
	// system: cash 现金 ; deposit 存储模块 ; weixin 微信支付 ; alipay 支付宝
	// mark: 子渠道信息,例如 weixin 的wxx/merchant
	TakeChannel CoreSQLFrom.FieldsFrom `db:"take_channel" json:"takeChannel"`
	//交易备注
	Des string `json:"des"`
	//货币
	Currency int `json:"currency"`
	//金额
	Price int64 `json:"price"`
	//扩展信息
	Params []CoreSQLConfig.FieldsConfigType `json:"params"`
}

ArgsPayCreateOrgToUser 商户给用户付款参数

Jump to

Keyboard shortcuts

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