models

package
v0.0.0-...-69cb59b Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 7 Imported by: 0

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