implement

package
v0.0.0-...-e1989bb Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for 对接异步通知
** @Time : 2019.04.22 16:18
** @Author : Joker
** @File : api_asy_notice
** @Last Modified by : Joker
** @Last Modified time: 2019.04.22 16:18
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 对接充值代付实现方法
** @Time : 2019.04.19 16:36
** @Author : Joker
** @File : api_recharge_pay_impl.go
** @Last Modified by : Joker
** @Last Modified time: 2019.04.19 16:36
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 商户实现方法
** @Time : 2019.04.13 10:37
** @Author : Joker
** @File : merchant_impl
** @Last Modified by : Joker
** @Last Modified time: 2019.04.13 10:37
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 代付实现方法
** @Time : 2019.04.16 17:08
** @Author : Joker
** @File : pay_impl
** @Last Modified by : Joker
** @Last Modified time: 2019.04.16 17:08
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 记录实现方法
** @Time : 2019.05.23 16:05
** @Author : Joker
** @File : record_impl
** @Last Modified by : Joker
** @Last Modified time: 2019.05.23 16:05
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for 转账实现方法
** @Time : 2019.04.23 16:59
** @Author : Joker
** @File : transfer_impl
** @Last Modified by : Joker
** @Last Modified time: 2019.04.23 16:59
** @Software: GoLand

***************************************************

Index

Constants

This section is empty.

Variables

View Source
var AES = utils.AES{}

Functions

This section is empty.

Types

type ApiAsyNotice

type ApiAsyNotice struct{}

func (*ApiAsyNotice) ApiPayAsyNotice

func (*ApiAsyNotice) ApiPayAsyNotice(record models.WithdrawRecord)

/ 对接代付异步通知

func (*ApiAsyNotice) ApiRechargeAsyNotice

func (*ApiAsyNotice) ApiRechargeAsyNotice(record models.RechargeRecord)

对接充值异步通知

type ApiRechargePayImpl

type ApiRechargePayImpl struct{}

func (*ApiRechargePayImpl) CheckPayQueryBalanceParams

func (the *ApiRechargePayImpl) CheckPayQueryBalanceParams(params models.ApiQueryBalanceParams, ip string) (bool, map[string]interface{})

校验代付余额查询请求参数

func (*ApiRechargePayImpl) CheckPayQueryParams

func (the *ApiRechargePayImpl) CheckPayQueryParams(params models.ApiQueryParams, ip string) (bool, map[string]interface{})

校验代付查询请求参数

func (*ApiRechargePayImpl) CheckPayRequestParams

func (the *ApiRechargePayImpl) CheckPayRequestParams(params models.ApiPayRequestParams, ip string) (bool, map[string]interface{})

校验代付请求参数

func (*ApiRechargePayImpl) CheckRechargeQueryParams

func (the *ApiRechargePayImpl) CheckRechargeQueryParams(params models.ApiQueryParams, ip string) (bool, map[string]interface{})

校验充值查询请求参数

func (*ApiRechargePayImpl) CheckRequestParams

func (the *ApiRechargePayImpl) CheckRequestParams(params models.ApiRechargeRequestParams, ip string) (bool, map[string]interface{})

校验充值请求参数

func (*ApiRechargePayImpl) GenerateSignV1

func (*ApiRechargePayImpl) GenerateSignV1(params interface{}, apiKey string) string

下游对接接口和发送异步状态时用此签名 生成签名

func (*ApiRechargePayImpl) GenerateSignV2

func (*ApiRechargePayImpl) GenerateSignV2(params interface{}, apiKey string) string

查询时用 生成签名

type MerchantImpl

type MerchantImpl struct{}

func (*MerchantImpl) DecryptRespDataByPrivateKey

func (*MerchantImpl) DecryptRespDataByPrivateKey(tm string) ([]byte, error)

对响应进行aes私钥解密

func (*MerchantImpl) UpdateMerchantAmount

func (the *MerchantImpl) UpdateMerchantAmount(merchant models.Merchant, msg string, flag int) (string, int)

更新商户金额

func (*MerchantImpl) VerificationUserInfo

func (*MerchantImpl) VerificationUserInfo(pwd, newPwd string) (string, bool)

* * @Description: 验证用户信息 * @Author: Joker * @Date: 2019.04.08 9:27 * @Param: pwd: 旧密码 newPwd: 新密码 * @return: string: 错误原因 bool: 验证是否通过 *

func (*MerchantImpl) XFGenerateSign

func (*MerchantImpl) XFGenerateSign(params, key string) (string, error)

先锋查询生成签名

func (*MerchantImpl) XFGenerateSignV2

func (*MerchantImpl) XFGenerateSignV2(params, key string) (string, error)

先锋查询生成签名 5.0.0版本

func (*MerchantImpl) XFHandleBlockKey

func (*MerchantImpl) XFHandleBlockKey(b, k string) (string, error)

对秘钥进行rsa公钥加密

func (*MerchantImpl) XFQueryBalance

func (the *MerchantImpl) XFQueryBalance(mt models.Merchant) (result []byte, err error)

构造余额查询请求

func (*MerchantImpl) XFQueryBalanceV2

func (the *MerchantImpl) XFQueryBalanceV2(mt models.Merchant, b string) (result []byte, err error)

构造余额查询请求 v5.0.0版本

type RechargePayImpl

type RechargePayImpl struct{}

func (*RechargePayImpl) VerificationBulkPayInfo

func (*RechargePayImpl) VerificationBulkPayInfo(money, allRecords, mobileNo string) (string, bool)

验证批量代付信息

func (*RechargePayImpl) VerificationBulkPayMoney

func (*RechargePayImpl) VerificationBulkPayMoney(money string) bool

验证代付金额

func (*RechargePayImpl) VerificationBulkRechargeInfo

func (*RechargePayImpl) VerificationBulkRechargeInfo(money, allRecords string) (string, bool)

验证批量充值信息

func (*RechargePayImpl) VerificationBulkRechargeMoney

func (*RechargePayImpl) VerificationBulkRechargeMoney(money string) bool

验证充值金额

func (*RechargePayImpl) VerificationPayInfo

func (*RechargePayImpl) VerificationPayInfo(accountNo, accountName, money string) (string, bool)

验证代付信息

func (*RechargePayImpl) VerificationSmgOrIP

func (*RechargePayImpl) VerificationSmgOrIP(userId int, code interface{}, ip, mobileCode string) (string, bool)

验证短信或ip

type RecordImpl

type RecordImpl struct{}

func (*RecordImpl) CreateXLSXFileForRecord

func (the *RecordImpl) CreateXLSXFileForRecord(listT []models.TransferRecord, listP []models.WithdrawRecord, listR []models.RechargeRecord) (string, int)

func (*RecordImpl) RemoveFileOrMKDir

func (*RecordImpl) RemoveFileOrMKDir(path string)

删除指定目录下的所有文件

type TransferImpl

type TransferImpl struct{}

func (*TransferImpl) VerificationTransferInfo

func (*TransferImpl) VerificationTransferInfo(money string) (string, bool)

验证b2c转账信息

Jump to

Keyboard shortcuts

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