methods

package
v0.0.0-...-984ec8c Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSigned                      = errors.New("the account has been signed today")
	ErrNoSuchAccount               = errors.New("no such account")
	ErrInsufficientCookie          = errors.New("insufficient cookie")
	ErrWrongAccountEmailOrPassword = errors.New("wrong account email or password")
	ErrInvalidCookie               = errors.New("invalid cookie")
	ErrLoginFailed                 = errors.New("login failed")
	ErrUnknown                     = errors.New("unknown error")
)

Functions

func DeleteAccount

func DeleteAccount(account *models.Account)

func GetAccountByID

func GetAccountByID(accountID uint) *models.Account

func QueryRemainingTransfer

func QueryRemainingTransfer(account *models.Account) (remaining float64, err error)

func QueryRemainingTransferWithAccountID

func QueryRemainingTransferWithAccountID(accountID uint) (remaining float64, err error)

func Sign

func Sign(account *models.Account) (got uint, err error)

func SignWithAccountID

func SignWithAccountID(accountID uint) (got uint, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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