models

package
v0.0.0-...-7030ca0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockDatabasePrefix

func GetMockDatabasePrefix() string

func RegisterDataBase

func RegisterDataBase()

func RegisterModel

func RegisterModel()

func SetAPICode

func SetAPICode(apiCodeObj *APICode) (err error)

Types

type APICode

type APICode struct {
	APICodeID int64  `orm:"pk;auto;unique;column(api_code_id)" json:"api_code_id"`
	APICode   string `orm:"unique;column(api_code)" json:"api_code"`
	ApiSecret string `orm:"unique;column(api_secret)" json:"api_secret"`
	WalletID  int64  `orm:"unique;column(wallet_id)" json:"wallet_id"`
}

func GetWalletAPICode

func GetWalletAPICode(walletID int64) (apiCodeObj *APICode, err error)

func (*APICode) TableEngine

func (m *APICode) TableEngine() string

func (*APICode) TableName

func (m *APICode) TableName() string

func (*APICode) TableNameWithPrefix

func (m *APICode) TableNameWithPrefix() string

Jump to

Keyboard shortcuts

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