account

package
v0.0.0-...-59da782 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcoinCheckPayPwd

func BcoinCheckPayPwd(serverUrl, token, payPassword string) error

func BcoinCheckTrans

func BcoinCheckTrans(serverUrl, uniqueId string, costType int) (int, error)

查询转账记录

func BcoinPraise

func BcoinPraise(serverUrl, token, toUid, currency, amount, payPassword, uniqueId string, costCategory string) (interface{}, error)

打赏转账 币钱包 转账

func BcoinReturnCost

func BcoinReturnCost(serverUrl, uniqueId string, costType int) (string, error)

退回转账金额

func BcoinSetPayPwd

func BcoinSetPayPwd(serverUrl, token, mode, payPassword, authType, code, oldPayPassword string) error

func BcoinTakeCost

func BcoinTakeCost(serverUrl, token, currency, amount, payPassword, code, uniqueId string, costCategory string) (string, error)

币钱包 转账

func BcoinWithdraw

func BcoinWithdraw(serverUrl, token, currency string, amount, fee float64, opp_address, rid, mode, payword, code string, isPublickey bool) (string, string, error)

代币划转

func CoinSupport

func CoinSupport(appKey, appSecret, serverUrl string) (interface{}, error)

从币钱包 获取支持币种 返回:[]string

func EditRealBcoin

func EditRealBcoin(appKey, appSecret, serverUrl string, params *EditRewardParam) error

从币钱包 设置奖励金额

func InviteInfosFromBcoin

func InviteInfosFromBcoin(serverUrl, token string, rewardType, page, size int64) (interface{}, error)

从钱包获取 推荐信息

func InviteStatisticsFromBcoin

func InviteStatisticsFromBcoin(serverUrl, token string) (interface{}, error)

从钱包获取 推荐统计信息

func PublicKeyFromBcoin

func PublicKeyFromBcoin(serverUrl, token string) (string, error)

币钱包 获取用户公钥

func RPFeeConfigFromBcoin

func RPFeeConfigFromBcoin(appKey, appSecret, serverUrl string) (interface{}, error)

红包手续费配置信息

func RPFeeInfoFromBcoin

func RPFeeInfoFromBcoin(serverUrl string) (interface{}, error)

红包手续费配置信息 公共数据接口

func RPFeeStatistics

func RPFeeStatistics(appKey, appSecret, serverUrl string) (interface{}, error)

红包手续费统计信息

func RewardList

func RewardList(appKey, appSecret, serverUrl string, query *RewardListParam) (interface{}, error)

从币钱包 获取支持币种 返回:[]string

func SetRPFeeConfigFromBcoin

func SetRPFeeConfigFromBcoin(appKey, appSecret, serverUrl string, params *SetRPFeeParam) error

设置红包手续费

func ShowRealBcoin

func ShowRealBcoin(appKey, appSecret, serverUrl string) (interface{}, error)

从币钱包 查询奖励金额

func UserInfoFromBcoin

func UserInfoFromBcoin(serverUrl, token string) (*types.User, error)

从币钱包获取用户信息

Types

type EditRewardParam

type EditRewardParam struct {
	BaseCurrency     string    `json:"baseCurrency" binding:"required"`
	BaseOpen         int       `json:"baseOpen"`
	RewardForUser    float64   `json:"rewardForUser" binding:"required"`
	RewardForInviter []float64 `json:"rewardForInviter" binding:"required"`
	AdvanceCurrency  string    `json:"advanceCurrency" binding:"required"`
	AdvanceOpen      int       `json:"advanceOpen"`
	ReachNum         int       `json:"reachNum"  binding:"required"`
	RewardForNum     float64   `json:"rewardForNum"  binding:"required"`
}

type RewardListParam

type RewardListParam struct {
	Search     string `json:"search"`
	Page       int    `json:"page"`
	Size       int    `json:"size"`
	RewardType *int   `json:"rewardType"`
}

type SetRPFeeParam

type SetRPFeeParam struct {
	Config []struct {
		Currency string `json:"currency" binding:"required"`
		Amount   string `json:"amount" binding:"required"`
	} `json:"config" binding:"required"`
}

Jump to

Keyboard shortcuts

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