wallet

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var GetWalletRouter = router.Handler(func(c router.Context) {
	currency := c.Param("currency")

	c.ResponseFunc(nil, func() schema.Response {
		return GetWallet(helper.NewContext(&c), currency)
	})
})
View Source
var GetWalletsRouter = router.Handler(func(c router.Context) {
	c.ResponseFunc(nil, func() schema.Response {
		return GetWallets(helper.NewContext(&c))
	})
})

Functions

func GenerateWalletSQL

func GenerateWalletSQL(filter QueryParams, limit int, count bool) string

func GetTableName

func GetTableName(currency string) string

func GetWallet

func GetWallet(c helper.Context, currencyName string) (res schema.Response)

func GetWallets

func GetWallets(c helper.Context) (res schema.Response)

func IsValidWallet

func IsValidWallet(walletName string) bool

Types

type QueryParams

type QueryParams struct {
	Id       *string `json:"id"`       // 用户ID
	Currency *string `json:"currency"` // 钱包币种
}

Jump to

Keyboard shortcuts

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