entity

package
v0.0.0-...-50e54af Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency struct {
	Name   string `json:"name" bson:"name" yaml:"name"`       // 币种名称
	Status int64  `json:"status" bson:"status" yaml:"status"` // 二进制开关,0 提币,1 充值, 2 划转
}

func (*Currency) ToPb

func (c *Currency) ToPb() *dto.Currency

type CurrencyList

type CurrencyList []Currency

func (*CurrencyList) GetConfigKey

func (a *CurrencyList) GetConfigKey() string

func (*CurrencyList) LoadConfig

func (a *CurrencyList) LoadConfig(value []byte)

type CurrencyNet

type CurrencyNet struct {
	Name      string `json:"name,omitempty" bson:"name" yaml:"name"`                   // 网络名称
	SpareName string `json:"spare_name,omitempty" bson:"spare_name" yaml:"spare_name"` // 备用名称(目前是传给区块链)
	MasterCy  string `json:"master_cy,omitempty" bson:"master_cy" yaml:"master_cy"`    // 转账币种
	AddressCy string `json:"address_cy" bson:"address_cy" yaml:"address_cy"`           // 获取地址币种
	Status    bool   `json:"status,omitempty" bson:"status" yaml:"status"`             // 是否启用
	AdviseGas string `json:"advise_gas" bson:"advise_gas" yaml:"advise_gas"`           // 建议gas
	MinGas    string `json:"min_gas" bson:"min_gas" yaml:"min_gas"`                    // 最小手续费
	MaxGas    string `json:"max_gas" bson:"max_gas" yaml:"max_gas"`                    // 最大手续费
	Weight    int32  `json:"weight,omitempty" bson:"weight" yaml:"weight"`             // 排序权重
}

func (*CurrencyNet) ToPb

func (c *CurrencyNet) ToPb() *dto.Net

type CurrencyNetList

type CurrencyNetList []CurrencyNet

func (*CurrencyNetList) GetConfigKey

func (a *CurrencyNetList) GetConfigKey() string

func (*CurrencyNetList) LoadConfig

func (a *CurrencyNetList) LoadConfig(value []byte)

Jump to

Keyboard shortcuts

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