Documentation ¶
Overview ¶
**************************************************
** @Desc : This file for 商户条件控制 ** @Time : 2019.04.13 9:42 ** @Author : Joker ** @File : merchant_factor ** @Last Modified by : Joker ** @Last Modified time: 2019.04.13 9:42 ** @Software: GoLand
***************************************************
**************************************************
** @Desc : This file for 计算记录金额 ** @Time : 2019.04.15 14:08 ** @Author : Joker ** @File : record_factor ** @Last Modified by : Joker ** @Last Modified time: 2019.04.15 14:08 ** @Software: GoLand
***************************************************
Index ¶
- type MerchantFactor
- type RecordFactor
- func (*RecordFactor) CountSuccessPay(in map[string]interface{}) (rechargeT float64, count int)
- func (*RecordFactor) CountSuccessPayHaveFee(in map[string]interface{}, userInfo models.UserInfo) (rechargeT, fee float64, l int)
- func (*RecordFactor) CountSuccessRecharge(in map[string]interface{}) (rechargeT float64, count int)
- func (*RecordFactor) CountSuccessRechargeHaveFee(in map[string]interface{}, info models.UserInfo) (rechargeT, fee float64, l int)
- func (*RecordFactor) CountSuccessTransfer(in map[string]interface{}) (rechargeT float64)
- func (*RecordFactor) CountSuccessTransferHaveFee(in map[string]interface{}, userInfo models.UserInfo) (rechargeT, fee float64, l int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerchantFactor ¶
type MerchantFactor struct{}
func (*MerchantFactor) QueryOneMerchantForPay ¶
func (*MerchantFactor) QueryOneMerchantForPay(amount string) (m models.Merchant)
从所有可代付的商户中选择单个商户
func (*MerchantFactor) QueryOneMerchantForRecharge ¶
func (*MerchantFactor) QueryOneMerchantForRecharge() models.Merchant
从所有可充值的商户中选择单个商户
type RecordFactor ¶
type RecordFactor struct{}
func (*RecordFactor) CountSuccessPay ¶
func (*RecordFactor) CountSuccessPay(in map[string]interface{}) (rechargeT float64, count int)
计算成功提现金额
func (*RecordFactor) CountSuccessPayHaveFee ¶
func (*RecordFactor) CountSuccessPayHaveFee(in map[string]interface{}, userInfo models.UserInfo) (rechargeT, fee float64, l int)
计算成功提现金额,加上费率和手续费
func (*RecordFactor) CountSuccessRecharge ¶
func (*RecordFactor) CountSuccessRecharge(in map[string]interface{}) (rechargeT float64, count int)
计算成功充值金额
func (*RecordFactor) CountSuccessRechargeHaveFee ¶
func (*RecordFactor) CountSuccessRechargeHaveFee(in map[string]interface{}, info models.UserInfo) (rechargeT, fee float64, l int)
计算成功充值金额,加上费率和手续费
func (*RecordFactor) CountSuccessTransfer ¶
func (*RecordFactor) CountSuccessTransfer(in map[string]interface{}) (rechargeT float64)
计算成功B2C金额
func (*RecordFactor) CountSuccessTransferHaveFee ¶
func (*RecordFactor) CountSuccessTransferHaveFee(in map[string]interface{}, userInfo models.UserInfo) (rechargeT, fee float64, l int)
计算成功B2C金额,加上费率和手续费
Click to show internal directories.
Click to hide internal directories.