models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 15 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppDBSchema = struct {
	ID         appDBSchemaField
	CreatedAt  appDBSchemaField
	UpdatedAt  appDBSchemaField
	DeletedAt  appDBSchemaField
	Name       appDBSchemaField
	Token      appDBSchemaField
	WebHookURL appDBSchemaField
	Level      appDBSchemaField
	WalletID   appDBSchemaField
	GroupID    appDBSchemaField
	AccountID  appDBSchemaField
}{

	ID:         appDBSchemaField("id"),
	CreatedAt:  appDBSchemaField("created_at"),
	UpdatedAt:  appDBSchemaField("updated_at"),
	DeletedAt:  appDBSchemaField("deleted_at"),
	Name:       appDBSchemaField("name"),
	Token:      appDBSchemaField("token"),
	WebHookURL: appDBSchemaField("web_hook_url"),
	Level:      appDBSchemaField("level"),
	WalletID:   appDBSchemaField("wallet_id"),
	GroupID:    appDBSchemaField("group_id"),
	AccountID:  appDBSchemaField("account_id"),
}

AppDBSchema stores db field names of App

View Source
var Apps appsModel

Apps used for models helper

View Source
var GroupDBSchema = struct {
	ID        groupDBSchemaField
	CreatedAt groupDBSchemaField
	UpdatedAt groupDBSchemaField
	DeletedAt groupDBSchemaField
	Name      groupDBSchemaField
	OwnerID   groupDBSchemaField
	Counters  groupDBSchemaField
}{

	ID:        groupDBSchemaField("id"),
	CreatedAt: groupDBSchemaField("created_at"),
	UpdatedAt: groupDBSchemaField("updated_at"),
	DeletedAt: groupDBSchemaField("deleted_at"),
	Name:      groupDBSchemaField("name"),
	OwnerID:   groupDBSchemaField("owner_id"),
	Counters:  groupDBSchemaField("counters"),
}

GroupDBSchema stores db field names of Group

View Source
var TxnDBSchema = struct {
	ID         txnDBSchemaField
	TxnType    txnDBSchemaField
	ProviderID txnDBSchemaField
	Amount     txnDBSchemaField
	CreatedAt  txnDBSchemaField
	Fee        txnDBSchemaField
	Status     txnDBSchemaField
	WalletID   txnDBSchemaField
}{

	ID:         txnDBSchemaField("id"),
	TxnType:    txnDBSchemaField("txn_type"),
	ProviderID: txnDBSchemaField("provider_id"),
	Amount:     txnDBSchemaField("amount"),
	CreatedAt:  txnDBSchemaField("created_at"),
	Fee:        txnDBSchemaField("fee"),
	Status:     txnDBSchemaField("status"),
	WalletID:   txnDBSchemaField("wallet_id"),
}

TxnDBSchema stores db field names of Txn

View Source
var UserDBSchema = struct {
	ID             userDBSchemaField
	CreatedAt      userDBSchemaField
	UpdatedAt      userDBSchemaField
	DeletedAt      userDBSchemaField
	Username       userDBSchemaField
	HashedPassword userDBSchemaField
}{

	ID:             userDBSchemaField("id"),
	CreatedAt:      userDBSchemaField("created_at"),
	UpdatedAt:      userDBSchemaField("updated_at"),
	DeletedAt:      userDBSchemaField("deleted_at"),
	Username:       userDBSchemaField("username"),
	HashedPassword: userDBSchemaField("hashed_password"),
}

UserDBSchema stores db field names of User

View Source
var WalletDBSchema = struct {
	ID                 walletDBSchemaField
	CreatedAt          walletDBSchemaField
	UpdatedAt          walletDBSchemaField
	DeletedAt          walletDBSchemaField
	Name               walletDBSchemaField
	WalletID           walletDBSchemaField
	Blocked            walletDBSchemaField
	Token              walletDBSchemaField
	TokenExpiry        walletDBSchemaField
	Balance            walletDBSchemaField
	Limit              walletDBSchemaField
	TotalMonthIncoming walletDBSchemaField
	TotalMonthOutgoing walletDBSchemaField
	TotalSynced        walletDBSchemaField
	OwnerID            walletDBSchemaField
	GroupID            walletDBSchemaField
	WalletCounters     walletDBSchemaField
}{

	ID:                 walletDBSchemaField("id"),
	CreatedAt:          walletDBSchemaField("created_at"),
	UpdatedAt:          walletDBSchemaField("updated_at"),
	DeletedAt:          walletDBSchemaField("deleted_at"),
	Name:               walletDBSchemaField("name"),
	WalletID:           walletDBSchemaField("wallet_id"),
	Blocked:            walletDBSchemaField("blocked"),
	Token:              walletDBSchemaField("token"),
	TokenExpiry:        walletDBSchemaField("token_expiry"),
	Balance:            walletDBSchemaField("balance"),
	Limit:              walletDBSchemaField("limit"),
	TotalMonthIncoming: walletDBSchemaField("total_month_incoming"),
	TotalMonthOutgoing: walletDBSchemaField("total_month_outgoing"),
	TotalSynced:        walletDBSchemaField("total_synced"),
	OwnerID:            walletDBSchemaField("owner_id"),
	GroupID:            walletDBSchemaField("group_id"),
	WalletCounters:     walletDBSchemaField("wallet_counters"),
}

WalletDBSchema stores db field names of Wallet

Functions

func CreateMultipleTxns

func CreateMultipleTxns(walletID uint, txns []Txn) (err error)

CreateMultipleTxns insert transactions in on txn

func CreateWallet

func CreateWallet(wallet *Wallet) (err error)

CreateWallet create an wallet

func DB

func DB() *gorm.DB

DB returns db for global usage

func GetLastTxn

func GetLastTxn(walletID uint) (txnID uint, err error)

GetLastTxn return last txn on wallet with walletID

func IsErrUnniqueConstraintFailed added in v0.0.2

func IsErrUnniqueConstraintFailed(err error) bool

IsErrUnniqueConstraintFailed check is sql error unique constrint failed

func NewContext

func NewContext() (err error)

NewContext init db instance

func SaveUser

func SaveUser(user *User) (err error)

SaveUser update or create user

Types

type App added in v0.0.4

type App struct {
	gorm.Model

	Name string

	Token      string
	WebHookURL string
	Level      AppLevel

	// not used now
	WalletID uint
	// not used now
	GroupID   uint
	AccountID uint
}

App used for webhooks and developers gen:qs

func (*App) Create added in v0.0.4

func (o *App) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*App) Delete added in v0.0.4

func (o *App) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*App) Update added in v0.0.4

func (o *App) Update(db *gorm.DB, fields ...appDBSchemaField) error

Update updates App fields by primary key

type AppLevel added in v0.0.4

type AppLevel int

AppLevel type of app

const (
	// AppWallet app setting affect only on wallet
	AppWallet AppLevel = iota + 1
	// AppGroup setting affect all wallets in group
	AppGroup
	// AppAccount setting affect all wallets in account
	AppAccount
)

type AppQuerySet added in v0.0.4

type AppQuerySet struct {
	// contains filtered or unexported fields
}

AppQuerySet is an queryset type for App

func NewAppQuerySet added in v0.0.4

func NewAppQuerySet(db *gorm.DB) AppQuerySet

NewAppQuerySet constructs new AppQuerySet

func (AppQuerySet) AccountIDEq added in v0.0.4

func (qs AppQuerySet) AccountIDEq(accountID uint) AppQuerySet

AccountIDEq is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDGt added in v0.0.4

func (qs AppQuerySet) AccountIDGt(accountID uint) AppQuerySet

AccountIDGt is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDGte added in v0.0.4

func (qs AppQuerySet) AccountIDGte(accountID uint) AppQuerySet

AccountIDGte is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDIn added in v0.0.4

func (qs AppQuerySet) AccountIDIn(accountID uint, accountIDRest ...uint) AppQuerySet

AccountIDIn is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDLt added in v0.0.4

func (qs AppQuerySet) AccountIDLt(accountID uint) AppQuerySet

AccountIDLt is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDLte added in v0.0.4

func (qs AppQuerySet) AccountIDLte(accountID uint) AppQuerySet

AccountIDLte is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDNe added in v0.0.4

func (qs AppQuerySet) AccountIDNe(accountID uint) AppQuerySet

AccountIDNe is an autogenerated method nolint: dupl

func (AppQuerySet) AccountIDNotIn added in v0.0.4

func (qs AppQuerySet) AccountIDNotIn(accountID uint, accountIDRest ...uint) AppQuerySet

AccountIDNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) All added in v0.0.4

func (qs AppQuerySet) All(ret *[]App) error

All is an autogenerated method nolint: dupl

func (AppQuerySet) Count added in v0.0.4

func (qs AppQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtEq added in v0.0.4

func (qs AppQuerySet) CreatedAtEq(createdAt time.Time) AppQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtGt added in v0.0.4

func (qs AppQuerySet) CreatedAtGt(createdAt time.Time) AppQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtGte added in v0.0.4

func (qs AppQuerySet) CreatedAtGte(createdAt time.Time) AppQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtLt added in v0.0.4

func (qs AppQuerySet) CreatedAtLt(createdAt time.Time) AppQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtLte added in v0.0.4

func (qs AppQuerySet) CreatedAtLte(createdAt time.Time) AppQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (AppQuerySet) CreatedAtNe added in v0.0.4

func (qs AppQuerySet) CreatedAtNe(createdAt time.Time) AppQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (AppQuerySet) Delete added in v0.0.4

func (qs AppQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtEq added in v0.0.4

func (qs AppQuerySet) DeletedAtEq(deletedAt time.Time) AppQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtGt added in v0.0.4

func (qs AppQuerySet) DeletedAtGt(deletedAt time.Time) AppQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtGte added in v0.0.4

func (qs AppQuerySet) DeletedAtGte(deletedAt time.Time) AppQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtIsNotNull added in v0.0.4

func (qs AppQuerySet) DeletedAtIsNotNull() AppQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtIsNull added in v0.0.4

func (qs AppQuerySet) DeletedAtIsNull() AppQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtLt added in v0.0.4

func (qs AppQuerySet) DeletedAtLt(deletedAt time.Time) AppQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtLte added in v0.0.4

func (qs AppQuerySet) DeletedAtLte(deletedAt time.Time) AppQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (AppQuerySet) DeletedAtNe added in v0.0.4

func (qs AppQuerySet) DeletedAtNe(deletedAt time.Time) AppQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (AppQuerySet) GetUpdater added in v0.0.4

func (qs AppQuerySet) GetUpdater() AppUpdater

GetUpdater is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDEq added in v0.0.4

func (qs AppQuerySet) GroupIDEq(groupID uint) AppQuerySet

GroupIDEq is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDGt added in v0.0.4

func (qs AppQuerySet) GroupIDGt(groupID uint) AppQuerySet

GroupIDGt is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDGte added in v0.0.4

func (qs AppQuerySet) GroupIDGte(groupID uint) AppQuerySet

GroupIDGte is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDIn added in v0.0.4

func (qs AppQuerySet) GroupIDIn(groupID uint, groupIDRest ...uint) AppQuerySet

GroupIDIn is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDLt added in v0.0.4

func (qs AppQuerySet) GroupIDLt(groupID uint) AppQuerySet

GroupIDLt is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDLte added in v0.0.4

func (qs AppQuerySet) GroupIDLte(groupID uint) AppQuerySet

GroupIDLte is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDNe added in v0.0.4

func (qs AppQuerySet) GroupIDNe(groupID uint) AppQuerySet

GroupIDNe is an autogenerated method nolint: dupl

func (AppQuerySet) GroupIDNotIn added in v0.0.4

func (qs AppQuerySet) GroupIDNotIn(groupID uint, groupIDRest ...uint) AppQuerySet

GroupIDNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) IDEq added in v0.0.4

func (qs AppQuerySet) IDEq(ID uint) AppQuerySet

IDEq is an autogenerated method nolint: dupl

func (AppQuerySet) IDGt added in v0.0.4

func (qs AppQuerySet) IDGt(ID uint) AppQuerySet

IDGt is an autogenerated method nolint: dupl

func (AppQuerySet) IDGte added in v0.0.4

func (qs AppQuerySet) IDGte(ID uint) AppQuerySet

IDGte is an autogenerated method nolint: dupl

func (AppQuerySet) IDIn added in v0.0.4

func (qs AppQuerySet) IDIn(ID uint, IDRest ...uint) AppQuerySet

IDIn is an autogenerated method nolint: dupl

func (AppQuerySet) IDLt added in v0.0.4

func (qs AppQuerySet) IDLt(ID uint) AppQuerySet

IDLt is an autogenerated method nolint: dupl

func (AppQuerySet) IDLte added in v0.0.4

func (qs AppQuerySet) IDLte(ID uint) AppQuerySet

IDLte is an autogenerated method nolint: dupl

func (AppQuerySet) IDNe added in v0.0.4

func (qs AppQuerySet) IDNe(ID uint) AppQuerySet

IDNe is an autogenerated method nolint: dupl

func (AppQuerySet) IDNotIn added in v0.0.4

func (qs AppQuerySet) IDNotIn(ID uint, IDRest ...uint) AppQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) LevelEq added in v0.0.4

func (qs AppQuerySet) LevelEq(level AppLevel) AppQuerySet

LevelEq is an autogenerated method nolint: dupl

func (AppQuerySet) LevelGt added in v0.0.4

func (qs AppQuerySet) LevelGt(level AppLevel) AppQuerySet

LevelGt is an autogenerated method nolint: dupl

func (AppQuerySet) LevelGte added in v0.0.4

func (qs AppQuerySet) LevelGte(level AppLevel) AppQuerySet

LevelGte is an autogenerated method nolint: dupl

func (AppQuerySet) LevelIn added in v0.0.4

func (qs AppQuerySet) LevelIn(level AppLevel, levelRest ...AppLevel) AppQuerySet

LevelIn is an autogenerated method nolint: dupl

func (AppQuerySet) LevelLt added in v0.0.4

func (qs AppQuerySet) LevelLt(level AppLevel) AppQuerySet

LevelLt is an autogenerated method nolint: dupl

func (AppQuerySet) LevelLte added in v0.0.4

func (qs AppQuerySet) LevelLte(level AppLevel) AppQuerySet

LevelLte is an autogenerated method nolint: dupl

func (AppQuerySet) LevelNe added in v0.0.4

func (qs AppQuerySet) LevelNe(level AppLevel) AppQuerySet

LevelNe is an autogenerated method nolint: dupl

func (AppQuerySet) LevelNotIn added in v0.0.4

func (qs AppQuerySet) LevelNotIn(level AppLevel, levelRest ...AppLevel) AppQuerySet

LevelNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) Limit added in v0.0.4

func (qs AppQuerySet) Limit(limit int) AppQuerySet

Limit is an autogenerated method nolint: dupl

func (AppQuerySet) NameEq added in v0.0.4

func (qs AppQuerySet) NameEq(name string) AppQuerySet

NameEq is an autogenerated method nolint: dupl

func (AppQuerySet) NameIn added in v0.0.4

func (qs AppQuerySet) NameIn(name string, nameRest ...string) AppQuerySet

NameIn is an autogenerated method nolint: dupl

func (AppQuerySet) NameNe added in v0.0.4

func (qs AppQuerySet) NameNe(name string) AppQuerySet

NameNe is an autogenerated method nolint: dupl

func (AppQuerySet) NameNotIn added in v0.0.4

func (qs AppQuerySet) NameNotIn(name string, nameRest ...string) AppQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) One added in v0.0.4

func (qs AppQuerySet) One(ret *App) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (AppQuerySet) OrderAscByAccountID added in v0.0.4

func (qs AppQuerySet) OrderAscByAccountID() AppQuerySet

OrderAscByAccountID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByCreatedAt added in v0.0.4

func (qs AppQuerySet) OrderAscByCreatedAt() AppQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByDeletedAt added in v0.0.4

func (qs AppQuerySet) OrderAscByDeletedAt() AppQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByGroupID added in v0.0.4

func (qs AppQuerySet) OrderAscByGroupID() AppQuerySet

OrderAscByGroupID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByID added in v0.0.4

func (qs AppQuerySet) OrderAscByID() AppQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByLevel added in v0.0.4

func (qs AppQuerySet) OrderAscByLevel() AppQuerySet

OrderAscByLevel is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByUpdatedAt added in v0.0.4

func (qs AppQuerySet) OrderAscByUpdatedAt() AppQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderAscByWalletID added in v0.0.4

func (qs AppQuerySet) OrderAscByWalletID() AppQuerySet

OrderAscByWalletID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByAccountID added in v0.0.4

func (qs AppQuerySet) OrderDescByAccountID() AppQuerySet

OrderDescByAccountID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByCreatedAt added in v0.0.4

func (qs AppQuerySet) OrderDescByCreatedAt() AppQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByDeletedAt added in v0.0.4

func (qs AppQuerySet) OrderDescByDeletedAt() AppQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByGroupID added in v0.0.4

func (qs AppQuerySet) OrderDescByGroupID() AppQuerySet

OrderDescByGroupID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByID added in v0.0.4

func (qs AppQuerySet) OrderDescByID() AppQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByLevel added in v0.0.4

func (qs AppQuerySet) OrderDescByLevel() AppQuerySet

OrderDescByLevel is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByUpdatedAt added in v0.0.4

func (qs AppQuerySet) OrderDescByUpdatedAt() AppQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (AppQuerySet) OrderDescByWalletID added in v0.0.4

func (qs AppQuerySet) OrderDescByWalletID() AppQuerySet

OrderDescByWalletID is an autogenerated method nolint: dupl

func (AppQuerySet) TokenEq added in v0.0.4

func (qs AppQuerySet) TokenEq(token string) AppQuerySet

TokenEq is an autogenerated method nolint: dupl

func (AppQuerySet) TokenIn added in v0.0.4

func (qs AppQuerySet) TokenIn(token string, tokenRest ...string) AppQuerySet

TokenIn is an autogenerated method nolint: dupl

func (AppQuerySet) TokenNe added in v0.0.4

func (qs AppQuerySet) TokenNe(token string) AppQuerySet

TokenNe is an autogenerated method nolint: dupl

func (AppQuerySet) TokenNotIn added in v0.0.4

func (qs AppQuerySet) TokenNotIn(token string, tokenRest ...string) AppQuerySet

TokenNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtEq added in v0.0.4

func (qs AppQuerySet) UpdatedAtEq(updatedAt time.Time) AppQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtGt added in v0.0.4

func (qs AppQuerySet) UpdatedAtGt(updatedAt time.Time) AppQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtGte added in v0.0.4

func (qs AppQuerySet) UpdatedAtGte(updatedAt time.Time) AppQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtLt added in v0.0.4

func (qs AppQuerySet) UpdatedAtLt(updatedAt time.Time) AppQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtLte added in v0.0.4

func (qs AppQuerySet) UpdatedAtLte(updatedAt time.Time) AppQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (AppQuerySet) UpdatedAtNe added in v0.0.4

func (qs AppQuerySet) UpdatedAtNe(updatedAt time.Time) AppQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDEq added in v0.0.4

func (qs AppQuerySet) WalletIDEq(walletID uint) AppQuerySet

WalletIDEq is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDGt added in v0.0.4

func (qs AppQuerySet) WalletIDGt(walletID uint) AppQuerySet

WalletIDGt is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDGte added in v0.0.4

func (qs AppQuerySet) WalletIDGte(walletID uint) AppQuerySet

WalletIDGte is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDIn added in v0.0.4

func (qs AppQuerySet) WalletIDIn(walletID uint, walletIDRest ...uint) AppQuerySet

WalletIDIn is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDLt added in v0.0.4

func (qs AppQuerySet) WalletIDLt(walletID uint) AppQuerySet

WalletIDLt is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDLte added in v0.0.4

func (qs AppQuerySet) WalletIDLte(walletID uint) AppQuerySet

WalletIDLte is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDNe added in v0.0.4

func (qs AppQuerySet) WalletIDNe(walletID uint) AppQuerySet

WalletIDNe is an autogenerated method nolint: dupl

func (AppQuerySet) WalletIDNotIn added in v0.0.4

func (qs AppQuerySet) WalletIDNotIn(walletID uint, walletIDRest ...uint) AppQuerySet

WalletIDNotIn is an autogenerated method nolint: dupl

func (AppQuerySet) WebHookURLEq added in v0.0.4

func (qs AppQuerySet) WebHookURLEq(webHookURL string) AppQuerySet

WebHookURLEq is an autogenerated method nolint: dupl

func (AppQuerySet) WebHookURLIn added in v0.0.4

func (qs AppQuerySet) WebHookURLIn(webHookURL string, webHookURLRest ...string) AppQuerySet

WebHookURLIn is an autogenerated method nolint: dupl

func (AppQuerySet) WebHookURLNe added in v0.0.4

func (qs AppQuerySet) WebHookURLNe(webHookURL string) AppQuerySet

WebHookURLNe is an autogenerated method nolint: dupl

func (AppQuerySet) WebHookURLNotIn added in v0.0.4

func (qs AppQuerySet) WebHookURLNotIn(webHookURL string, webHookURLRest ...string) AppQuerySet

WebHookURLNotIn is an autogenerated method nolint: dupl

type AppUpdater added in v0.0.4

type AppUpdater struct {
	// contains filtered or unexported fields
}

AppUpdater is an App updates manager

func NewAppUpdater added in v0.0.4

func NewAppUpdater(db *gorm.DB) AppUpdater

NewAppUpdater creates new App updater

func (AppUpdater) SetAccountID added in v0.0.4

func (u AppUpdater) SetAccountID(accountID uint) AppUpdater

SetAccountID is an autogenerated method nolint: dupl

func (AppUpdater) SetCreatedAt added in v0.0.4

func (u AppUpdater) SetCreatedAt(createdAt time.Time) AppUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (AppUpdater) SetGroupID added in v0.0.4

func (u AppUpdater) SetGroupID(groupID uint) AppUpdater

SetGroupID is an autogenerated method nolint: dupl

func (AppUpdater) SetID added in v0.0.4

func (u AppUpdater) SetID(ID uint) AppUpdater

SetID is an autogenerated method nolint: dupl

func (AppUpdater) SetLevel added in v0.0.4

func (u AppUpdater) SetLevel(level AppLevel) AppUpdater

SetLevel is an autogenerated method nolint: dupl

func (AppUpdater) SetName added in v0.0.4

func (u AppUpdater) SetName(name string) AppUpdater

SetName is an autogenerated method nolint: dupl

func (AppUpdater) SetToken added in v0.0.4

func (u AppUpdater) SetToken(token string) AppUpdater

SetToken is an autogenerated method nolint: dupl

func (AppUpdater) SetUpdatedAt added in v0.0.4

func (u AppUpdater) SetUpdatedAt(updatedAt time.Time) AppUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (AppUpdater) SetWalletID added in v0.0.4

func (u AppUpdater) SetWalletID(walletID uint) AppUpdater

SetWalletID is an autogenerated method nolint: dupl

func (AppUpdater) SetWebHookURL added in v0.0.4

func (u AppUpdater) SetWebHookURL(webHookURL string) AppUpdater

SetWebHookURL is an autogenerated method nolint: dupl

func (AppUpdater) Update added in v0.0.4

func (u AppUpdater) Update() error

Update is an autogenerated method nolint: dupl

type AuthForm

type AuthForm struct {
	Login    string `form:"login"`
	Password string `form:"password"`
}

AuthForm used in binding

type Group

type Group struct {
	gorm.Model

	Name    string
	OwnerID uint

	Counters GroupCounters `gorm:"-"`
}

Group represent group of wallets gen:qs

func CreateGroup

func CreateGroup(name string, ownerID uint) (group *Group, err error)

CreateGroup save new group in db

func GetGroup

func GetGroup(id uint, userIDs ...uint) (group *Group, err error)

GetGroup returns group by id

func GetUserGroups

func GetUserGroups(userID uint) (res []Group, err error)

GetUserGroups return groups where user has access

func (*Group) Create

func (o *Group) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Group) Delete

func (o *Group) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*Group) Update

func (o *Group) Update(db *gorm.DB, fields ...groupDBSchemaField) error

Update updates Group fields by primary key

type GroupCounters

type GroupCounters struct {
	Balance float64 `gorm:"balance"`
	Count   int     `gorm:"count"`
}

GroupCounters response of aggregate sql request

func GetGroupCounters

func GetGroupCounters(groupID uint) (res GroupCounters, err error)

GetGroupCounters agregate stat

type GroupQuerySet

type GroupQuerySet struct {
	// contains filtered or unexported fields
}

GroupQuerySet is an queryset type for Group

func NewGroupQuerySet

func NewGroupQuerySet(db *gorm.DB) GroupQuerySet

NewGroupQuerySet constructs new GroupQuerySet

func (GroupQuerySet) All

func (qs GroupQuerySet) All(ret *[]Group) error

All is an autogenerated method nolint: dupl

func (GroupQuerySet) Count

func (qs GroupQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtEq

func (qs GroupQuerySet) CreatedAtEq(createdAt time.Time) GroupQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtGt

func (qs GroupQuerySet) CreatedAtGt(createdAt time.Time) GroupQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtGte

func (qs GroupQuerySet) CreatedAtGte(createdAt time.Time) GroupQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtLt

func (qs GroupQuerySet) CreatedAtLt(createdAt time.Time) GroupQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtLte

func (qs GroupQuerySet) CreatedAtLte(createdAt time.Time) GroupQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (GroupQuerySet) CreatedAtNe

func (qs GroupQuerySet) CreatedAtNe(createdAt time.Time) GroupQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (GroupQuerySet) Delete

func (qs GroupQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtEq

func (qs GroupQuerySet) DeletedAtEq(deletedAt time.Time) GroupQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtGt

func (qs GroupQuerySet) DeletedAtGt(deletedAt time.Time) GroupQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtGte

func (qs GroupQuerySet) DeletedAtGte(deletedAt time.Time) GroupQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtIsNotNull

func (qs GroupQuerySet) DeletedAtIsNotNull() GroupQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtIsNull

func (qs GroupQuerySet) DeletedAtIsNull() GroupQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtLt

func (qs GroupQuerySet) DeletedAtLt(deletedAt time.Time) GroupQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtLte

func (qs GroupQuerySet) DeletedAtLte(deletedAt time.Time) GroupQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (GroupQuerySet) DeletedAtNe

func (qs GroupQuerySet) DeletedAtNe(deletedAt time.Time) GroupQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (GroupQuerySet) GetUpdater

func (qs GroupQuerySet) GetUpdater() GroupUpdater

GetUpdater is an autogenerated method nolint: dupl

func (GroupQuerySet) IDEq

func (qs GroupQuerySet) IDEq(ID uint) GroupQuerySet

IDEq is an autogenerated method nolint: dupl

func (GroupQuerySet) IDGt

func (qs GroupQuerySet) IDGt(ID uint) GroupQuerySet

IDGt is an autogenerated method nolint: dupl

func (GroupQuerySet) IDGte

func (qs GroupQuerySet) IDGte(ID uint) GroupQuerySet

IDGte is an autogenerated method nolint: dupl

func (GroupQuerySet) IDIn

func (qs GroupQuerySet) IDIn(ID uint, IDRest ...uint) GroupQuerySet

IDIn is an autogenerated method nolint: dupl

func (GroupQuerySet) IDLt

func (qs GroupQuerySet) IDLt(ID uint) GroupQuerySet

IDLt is an autogenerated method nolint: dupl

func (GroupQuerySet) IDLte

func (qs GroupQuerySet) IDLte(ID uint) GroupQuerySet

IDLte is an autogenerated method nolint: dupl

func (GroupQuerySet) IDNe

func (qs GroupQuerySet) IDNe(ID uint) GroupQuerySet

IDNe is an autogenerated method nolint: dupl

func (GroupQuerySet) IDNotIn

func (qs GroupQuerySet) IDNotIn(ID uint, IDRest ...uint) GroupQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (GroupQuerySet) Limit

func (qs GroupQuerySet) Limit(limit int) GroupQuerySet

Limit is an autogenerated method nolint: dupl

func (GroupQuerySet) NameEq

func (qs GroupQuerySet) NameEq(name string) GroupQuerySet

NameEq is an autogenerated method nolint: dupl

func (GroupQuerySet) NameIn

func (qs GroupQuerySet) NameIn(name string, nameRest ...string) GroupQuerySet

NameIn is an autogenerated method nolint: dupl

func (GroupQuerySet) NameNe

func (qs GroupQuerySet) NameNe(name string) GroupQuerySet

NameNe is an autogenerated method nolint: dupl

func (GroupQuerySet) NameNotIn

func (qs GroupQuerySet) NameNotIn(name string, nameRest ...string) GroupQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (GroupQuerySet) One

func (qs GroupQuerySet) One(ret *Group) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (GroupQuerySet) OrderAscByCreatedAt

func (qs GroupQuerySet) OrderAscByCreatedAt() GroupQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderAscByDeletedAt

func (qs GroupQuerySet) OrderAscByDeletedAt() GroupQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderAscByID

func (qs GroupQuerySet) OrderAscByID() GroupQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderAscByOwnerID

func (qs GroupQuerySet) OrderAscByOwnerID() GroupQuerySet

OrderAscByOwnerID is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderAscByUpdatedAt

func (qs GroupQuerySet) OrderAscByUpdatedAt() GroupQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderDescByCreatedAt

func (qs GroupQuerySet) OrderDescByCreatedAt() GroupQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderDescByDeletedAt

func (qs GroupQuerySet) OrderDescByDeletedAt() GroupQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderDescByID

func (qs GroupQuerySet) OrderDescByID() GroupQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderDescByOwnerID

func (qs GroupQuerySet) OrderDescByOwnerID() GroupQuerySet

OrderDescByOwnerID is an autogenerated method nolint: dupl

func (GroupQuerySet) OrderDescByUpdatedAt

func (qs GroupQuerySet) OrderDescByUpdatedAt() GroupQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDEq

func (qs GroupQuerySet) OwnerIDEq(ownerID uint) GroupQuerySet

OwnerIDEq is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDGt

func (qs GroupQuerySet) OwnerIDGt(ownerID uint) GroupQuerySet

OwnerIDGt is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDGte

func (qs GroupQuerySet) OwnerIDGte(ownerID uint) GroupQuerySet

OwnerIDGte is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDIn

func (qs GroupQuerySet) OwnerIDIn(ownerID uint, ownerIDRest ...uint) GroupQuerySet

OwnerIDIn is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDLt

func (qs GroupQuerySet) OwnerIDLt(ownerID uint) GroupQuerySet

OwnerIDLt is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDLte

func (qs GroupQuerySet) OwnerIDLte(ownerID uint) GroupQuerySet

OwnerIDLte is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDNe

func (qs GroupQuerySet) OwnerIDNe(ownerID uint) GroupQuerySet

OwnerIDNe is an autogenerated method nolint: dupl

func (GroupQuerySet) OwnerIDNotIn

func (qs GroupQuerySet) OwnerIDNotIn(ownerID uint, ownerIDRest ...uint) GroupQuerySet

OwnerIDNotIn is an autogenerated method nolint: dupl

func (GroupQuerySet) PreloadCounters added in v0.0.4

func (qs GroupQuerySet) PreloadCounters() GroupQuerySet

PreloadCounters is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtEq

func (qs GroupQuerySet) UpdatedAtEq(updatedAt time.Time) GroupQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtGt

func (qs GroupQuerySet) UpdatedAtGt(updatedAt time.Time) GroupQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtGte

func (qs GroupQuerySet) UpdatedAtGte(updatedAt time.Time) GroupQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtLt

func (qs GroupQuerySet) UpdatedAtLt(updatedAt time.Time) GroupQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtLte

func (qs GroupQuerySet) UpdatedAtLte(updatedAt time.Time) GroupQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (GroupQuerySet) UpdatedAtNe

func (qs GroupQuerySet) UpdatedAtNe(updatedAt time.Time) GroupQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

type GroupUpdater

type GroupUpdater struct {
	// contains filtered or unexported fields
}

GroupUpdater is an Group updates manager

func NewGroupUpdater

func NewGroupUpdater(db *gorm.DB) GroupUpdater

NewGroupUpdater creates new Group updater

func (GroupUpdater) SetCounters added in v0.0.4

func (u GroupUpdater) SetCounters(counters GroupCounters) GroupUpdater

SetCounters is an autogenerated method nolint: dupl

func (GroupUpdater) SetCreatedAt

func (u GroupUpdater) SetCreatedAt(createdAt time.Time) GroupUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (GroupUpdater) SetID

func (u GroupUpdater) SetID(ID uint) GroupUpdater

SetID is an autogenerated method nolint: dupl

func (GroupUpdater) SetName

func (u GroupUpdater) SetName(name string) GroupUpdater

SetName is an autogenerated method nolint: dupl

func (GroupUpdater) SetOwnerID

func (u GroupUpdater) SetOwnerID(ownerID uint) GroupUpdater

SetOwnerID is an autogenerated method nolint: dupl

func (GroupUpdater) SetUpdatedAt

func (u GroupUpdater) SetUpdatedAt(updatedAt time.Time) GroupUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (GroupUpdater) Update

func (u GroupUpdater) Update() error

Update is an autogenerated method nolint: dupl

type Status

type Status uint

Status represent status of txn

const (
	// Waiting txn created but not processed
	Waiting Status = iota + 1
	// Success txn
	Success
	// Error represent txn with an error
	Error
)

type Txn

type Txn struct {
	ID uint `gorm:"index"`

	TxnType    TxnType
	ProviderID uint // ?
	Amount     float64
	CreatedAt  time.Time `gorm:"index"`
	Fee        float64
	Status     Status

	WalletID uint
}

Txn qiwi transaction gen:qs

func GetWalletTxns

func GetWalletTxns(walletID uint) (res []Txn, err error)

GetWalletTxns get lasts wallet txns

func (*Txn) Create

func (o *Txn) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Txn) Delete

func (o *Txn) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (Txn) MarshalEasyJSON added in v0.0.4

func (v Txn) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Txn) MarshalJSON added in v0.0.4

func (v Txn) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Txn) UnmarshalEasyJSON added in v0.0.4

func (v *Txn) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Txn) UnmarshalJSON added in v0.0.4

func (v *Txn) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*Txn) Update

func (o *Txn) Update(db *gorm.DB, fields ...txnDBSchemaField) error

Update updates Txn fields by primary key

type TxnQuerySet

type TxnQuerySet struct {
	// contains filtered or unexported fields
}

TxnQuerySet is an queryset type for Txn

func NewTxnQuerySet

func NewTxnQuerySet(db *gorm.DB) TxnQuerySet

NewTxnQuerySet constructs new TxnQuerySet

func (TxnQuerySet) All

func (qs TxnQuerySet) All(ret *[]Txn) error

All is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountEq

func (qs TxnQuerySet) AmountEq(amount float64) TxnQuerySet

AmountEq is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountGt

func (qs TxnQuerySet) AmountGt(amount float64) TxnQuerySet

AmountGt is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountGte

func (qs TxnQuerySet) AmountGte(amount float64) TxnQuerySet

AmountGte is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountIn

func (qs TxnQuerySet) AmountIn(amount float64, amountRest ...float64) TxnQuerySet

AmountIn is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountLt

func (qs TxnQuerySet) AmountLt(amount float64) TxnQuerySet

AmountLt is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountLte

func (qs TxnQuerySet) AmountLte(amount float64) TxnQuerySet

AmountLte is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountNe

func (qs TxnQuerySet) AmountNe(amount float64) TxnQuerySet

AmountNe is an autogenerated method nolint: dupl

func (TxnQuerySet) AmountNotIn

func (qs TxnQuerySet) AmountNotIn(amount float64, amountRest ...float64) TxnQuerySet

AmountNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) Count

func (qs TxnQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtEq

func (qs TxnQuerySet) CreatedAtEq(createdAt time.Time) TxnQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtGt

func (qs TxnQuerySet) CreatedAtGt(createdAt time.Time) TxnQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtGte

func (qs TxnQuerySet) CreatedAtGte(createdAt time.Time) TxnQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtLt

func (qs TxnQuerySet) CreatedAtLt(createdAt time.Time) TxnQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtLte

func (qs TxnQuerySet) CreatedAtLte(createdAt time.Time) TxnQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (TxnQuerySet) CreatedAtNe

func (qs TxnQuerySet) CreatedAtNe(createdAt time.Time) TxnQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (TxnQuerySet) Delete

func (qs TxnQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeEq

func (qs TxnQuerySet) FeeEq(fee float64) TxnQuerySet

FeeEq is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeGt

func (qs TxnQuerySet) FeeGt(fee float64) TxnQuerySet

FeeGt is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeGte

func (qs TxnQuerySet) FeeGte(fee float64) TxnQuerySet

FeeGte is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeIn

func (qs TxnQuerySet) FeeIn(fee float64, feeRest ...float64) TxnQuerySet

FeeIn is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeLt

func (qs TxnQuerySet) FeeLt(fee float64) TxnQuerySet

FeeLt is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeLte

func (qs TxnQuerySet) FeeLte(fee float64) TxnQuerySet

FeeLte is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeNe

func (qs TxnQuerySet) FeeNe(fee float64) TxnQuerySet

FeeNe is an autogenerated method nolint: dupl

func (TxnQuerySet) FeeNotIn

func (qs TxnQuerySet) FeeNotIn(fee float64, feeRest ...float64) TxnQuerySet

FeeNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) GetUpdater

func (qs TxnQuerySet) GetUpdater() TxnUpdater

GetUpdater is an autogenerated method nolint: dupl

func (TxnQuerySet) IDEq

func (qs TxnQuerySet) IDEq(ID uint) TxnQuerySet

IDEq is an autogenerated method nolint: dupl

func (TxnQuerySet) IDGt

func (qs TxnQuerySet) IDGt(ID uint) TxnQuerySet

IDGt is an autogenerated method nolint: dupl

func (TxnQuerySet) IDGte

func (qs TxnQuerySet) IDGte(ID uint) TxnQuerySet

IDGte is an autogenerated method nolint: dupl

func (TxnQuerySet) IDIn

func (qs TxnQuerySet) IDIn(ID uint, IDRest ...uint) TxnQuerySet

IDIn is an autogenerated method nolint: dupl

func (TxnQuerySet) IDLt

func (qs TxnQuerySet) IDLt(ID uint) TxnQuerySet

IDLt is an autogenerated method nolint: dupl

func (TxnQuerySet) IDLte

func (qs TxnQuerySet) IDLte(ID uint) TxnQuerySet

IDLte is an autogenerated method nolint: dupl

func (TxnQuerySet) IDNe

func (qs TxnQuerySet) IDNe(ID uint) TxnQuerySet

IDNe is an autogenerated method nolint: dupl

func (TxnQuerySet) IDNotIn

func (qs TxnQuerySet) IDNotIn(ID uint, IDRest ...uint) TxnQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) Limit

func (qs TxnQuerySet) Limit(limit int) TxnQuerySet

Limit is an autogenerated method nolint: dupl

func (TxnQuerySet) One

func (qs TxnQuerySet) One(ret *Txn) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (TxnQuerySet) OrderAscByAmount

func (qs TxnQuerySet) OrderAscByAmount() TxnQuerySet

OrderAscByAmount is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByCreatedAt

func (qs TxnQuerySet) OrderAscByCreatedAt() TxnQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByFee

func (qs TxnQuerySet) OrderAscByFee() TxnQuerySet

OrderAscByFee is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByID

func (qs TxnQuerySet) OrderAscByID() TxnQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByProviderID

func (qs TxnQuerySet) OrderAscByProviderID() TxnQuerySet

OrderAscByProviderID is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByStatus

func (qs TxnQuerySet) OrderAscByStatus() TxnQuerySet

OrderAscByStatus is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByTxnType

func (qs TxnQuerySet) OrderAscByTxnType() TxnQuerySet

OrderAscByTxnType is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderAscByWalletID

func (qs TxnQuerySet) OrderAscByWalletID() TxnQuerySet

OrderAscByWalletID is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByAmount

func (qs TxnQuerySet) OrderDescByAmount() TxnQuerySet

OrderDescByAmount is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByCreatedAt

func (qs TxnQuerySet) OrderDescByCreatedAt() TxnQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByFee

func (qs TxnQuerySet) OrderDescByFee() TxnQuerySet

OrderDescByFee is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByID

func (qs TxnQuerySet) OrderDescByID() TxnQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByProviderID

func (qs TxnQuerySet) OrderDescByProviderID() TxnQuerySet

OrderDescByProviderID is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByStatus

func (qs TxnQuerySet) OrderDescByStatus() TxnQuerySet

OrderDescByStatus is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByTxnType

func (qs TxnQuerySet) OrderDescByTxnType() TxnQuerySet

OrderDescByTxnType is an autogenerated method nolint: dupl

func (TxnQuerySet) OrderDescByWalletID

func (qs TxnQuerySet) OrderDescByWalletID() TxnQuerySet

OrderDescByWalletID is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDEq

func (qs TxnQuerySet) ProviderIDEq(providerID uint) TxnQuerySet

ProviderIDEq is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDGt

func (qs TxnQuerySet) ProviderIDGt(providerID uint) TxnQuerySet

ProviderIDGt is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDGte

func (qs TxnQuerySet) ProviderIDGte(providerID uint) TxnQuerySet

ProviderIDGte is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDIn

func (qs TxnQuerySet) ProviderIDIn(providerID uint, providerIDRest ...uint) TxnQuerySet

ProviderIDIn is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDLt

func (qs TxnQuerySet) ProviderIDLt(providerID uint) TxnQuerySet

ProviderIDLt is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDLte

func (qs TxnQuerySet) ProviderIDLte(providerID uint) TxnQuerySet

ProviderIDLte is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDNe

func (qs TxnQuerySet) ProviderIDNe(providerID uint) TxnQuerySet

ProviderIDNe is an autogenerated method nolint: dupl

func (TxnQuerySet) ProviderIDNotIn

func (qs TxnQuerySet) ProviderIDNotIn(providerID uint, providerIDRest ...uint) TxnQuerySet

ProviderIDNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusEq

func (qs TxnQuerySet) StatusEq(status Status) TxnQuerySet

StatusEq is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusGt

func (qs TxnQuerySet) StatusGt(status Status) TxnQuerySet

StatusGt is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusGte

func (qs TxnQuerySet) StatusGte(status Status) TxnQuerySet

StatusGte is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusIn

func (qs TxnQuerySet) StatusIn(status Status, statusRest ...Status) TxnQuerySet

StatusIn is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusLt

func (qs TxnQuerySet) StatusLt(status Status) TxnQuerySet

StatusLt is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusLte

func (qs TxnQuerySet) StatusLte(status Status) TxnQuerySet

StatusLte is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusNe

func (qs TxnQuerySet) StatusNe(status Status) TxnQuerySet

StatusNe is an autogenerated method nolint: dupl

func (TxnQuerySet) StatusNotIn

func (qs TxnQuerySet) StatusNotIn(status Status, statusRest ...Status) TxnQuerySet

StatusNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeEq

func (qs TxnQuerySet) TxnTypeEq(txnType TxnType) TxnQuerySet

TxnTypeEq is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeGt

func (qs TxnQuerySet) TxnTypeGt(txnType TxnType) TxnQuerySet

TxnTypeGt is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeGte

func (qs TxnQuerySet) TxnTypeGte(txnType TxnType) TxnQuerySet

TxnTypeGte is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeIn

func (qs TxnQuerySet) TxnTypeIn(txnType TxnType, txnTypeRest ...TxnType) TxnQuerySet

TxnTypeIn is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeLt

func (qs TxnQuerySet) TxnTypeLt(txnType TxnType) TxnQuerySet

TxnTypeLt is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeLte

func (qs TxnQuerySet) TxnTypeLte(txnType TxnType) TxnQuerySet

TxnTypeLte is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeNe

func (qs TxnQuerySet) TxnTypeNe(txnType TxnType) TxnQuerySet

TxnTypeNe is an autogenerated method nolint: dupl

func (TxnQuerySet) TxnTypeNotIn

func (qs TxnQuerySet) TxnTypeNotIn(txnType TxnType, txnTypeRest ...TxnType) TxnQuerySet

TxnTypeNotIn is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDEq

func (qs TxnQuerySet) WalletIDEq(walletID uint) TxnQuerySet

WalletIDEq is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDGt

func (qs TxnQuerySet) WalletIDGt(walletID uint) TxnQuerySet

WalletIDGt is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDGte

func (qs TxnQuerySet) WalletIDGte(walletID uint) TxnQuerySet

WalletIDGte is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDIn

func (qs TxnQuerySet) WalletIDIn(walletID uint, walletIDRest ...uint) TxnQuerySet

WalletIDIn is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDLt

func (qs TxnQuerySet) WalletIDLt(walletID uint) TxnQuerySet

WalletIDLt is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDLte

func (qs TxnQuerySet) WalletIDLte(walletID uint) TxnQuerySet

WalletIDLte is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDNe

func (qs TxnQuerySet) WalletIDNe(walletID uint) TxnQuerySet

WalletIDNe is an autogenerated method nolint: dupl

func (TxnQuerySet) WalletIDNotIn

func (qs TxnQuerySet) WalletIDNotIn(walletID uint, walletIDRest ...uint) TxnQuerySet

WalletIDNotIn is an autogenerated method nolint: dupl

type TxnType

type TxnType uint

TxnType of txn

const (
	// In incominc txn
	In TxnType = iota + 1
	// Out outgoing txn
	Out
	// QiwiCard payment from Qiwi card
	QiwiCard
)

type TxnUpdater

type TxnUpdater struct {
	// contains filtered or unexported fields
}

TxnUpdater is an Txn updates manager

func NewTxnUpdater

func NewTxnUpdater(db *gorm.DB) TxnUpdater

NewTxnUpdater creates new Txn updater

func (TxnUpdater) SetAmount

func (u TxnUpdater) SetAmount(amount float64) TxnUpdater

SetAmount is an autogenerated method nolint: dupl

func (TxnUpdater) SetCreatedAt

func (u TxnUpdater) SetCreatedAt(createdAt time.Time) TxnUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (TxnUpdater) SetFee

func (u TxnUpdater) SetFee(fee float64) TxnUpdater

SetFee is an autogenerated method nolint: dupl

func (TxnUpdater) SetID

func (u TxnUpdater) SetID(ID uint) TxnUpdater

SetID is an autogenerated method nolint: dupl

func (TxnUpdater) SetProviderID

func (u TxnUpdater) SetProviderID(providerID uint) TxnUpdater

SetProviderID is an autogenerated method nolint: dupl

func (TxnUpdater) SetStatus

func (u TxnUpdater) SetStatus(status Status) TxnUpdater

SetStatus is an autogenerated method nolint: dupl

func (TxnUpdater) SetTxnType

func (u TxnUpdater) SetTxnType(txnType TxnType) TxnUpdater

SetTxnType is an autogenerated method nolint: dupl

func (TxnUpdater) SetWalletID

func (u TxnUpdater) SetWalletID(walletID uint) TxnUpdater

SetWalletID is an autogenerated method nolint: dupl

func (TxnUpdater) Update

func (u TxnUpdater) Update() error

Update is an autogenerated method nolint: dupl

type User

type User struct {
	gorm.Model

	Username       string `gorm:"unique_index"`
	HashedPassword []byte
}

User represent usually user object gen:qs

func CreateUser

func CreateUser(af AuthForm) (user *User, err error)

CreateUser save user in db

func GetUser

func GetUser(id uint) (user *User, err error)

GetUser returns user by id

func GetUserByAuthForm

func GetUserByAuthForm(af AuthForm) (user *User, err error)

GetUserByAuthForm check password and returns user

func (*User) Create

func (o *User) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*User) Delete

func (o *User) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (*User) Update

func (o *User) Update(db *gorm.DB, fields ...userDBSchemaField) error

Update updates User fields by primary key

type UserQuerySet

type UserQuerySet struct {
	// contains filtered or unexported fields
}

UserQuerySet is an queryset type for User

func NewUserQuerySet

func NewUserQuerySet(db *gorm.DB) UserQuerySet

NewUserQuerySet constructs new UserQuerySet

func (UserQuerySet) All

func (qs UserQuerySet) All(ret *[]User) error

All is an autogenerated method nolint: dupl

func (UserQuerySet) Count

func (qs UserQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtEq

func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGt

func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtGte

func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLt

func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtLte

func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) CreatedAtNe

func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) Delete

func (qs UserQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtEq

func (qs UserQuerySet) DeletedAtEq(deletedAt time.Time) UserQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtGt

func (qs UserQuerySet) DeletedAtGt(deletedAt time.Time) UserQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtGte

func (qs UserQuerySet) DeletedAtGte(deletedAt time.Time) UserQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtIsNotNull

func (qs UserQuerySet) DeletedAtIsNotNull() UserQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtIsNull

func (qs UserQuerySet) DeletedAtIsNull() UserQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtLt

func (qs UserQuerySet) DeletedAtLt(deletedAt time.Time) UserQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtLte

func (qs UserQuerySet) DeletedAtLte(deletedAt time.Time) UserQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) DeletedAtNe

func (qs UserQuerySet) DeletedAtNe(deletedAt time.Time) UserQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) GetUpdater

func (qs UserQuerySet) GetUpdater() UserUpdater

GetUpdater is an autogenerated method nolint: dupl

func (UserQuerySet) IDEq

func (qs UserQuerySet) IDEq(ID uint) UserQuerySet

IDEq is an autogenerated method nolint: dupl

func (UserQuerySet) IDGt

func (qs UserQuerySet) IDGt(ID uint) UserQuerySet

IDGt is an autogenerated method nolint: dupl

func (UserQuerySet) IDGte

func (qs UserQuerySet) IDGte(ID uint) UserQuerySet

IDGte is an autogenerated method nolint: dupl

func (UserQuerySet) IDIn

func (qs UserQuerySet) IDIn(ID uint, IDRest ...uint) UserQuerySet

IDIn is an autogenerated method nolint: dupl

func (UserQuerySet) IDLt

func (qs UserQuerySet) IDLt(ID uint) UserQuerySet

IDLt is an autogenerated method nolint: dupl

func (UserQuerySet) IDLte

func (qs UserQuerySet) IDLte(ID uint) UserQuerySet

IDLte is an autogenerated method nolint: dupl

func (UserQuerySet) IDNe

func (qs UserQuerySet) IDNe(ID uint) UserQuerySet

IDNe is an autogenerated method nolint: dupl

func (UserQuerySet) IDNotIn

func (qs UserQuerySet) IDNotIn(ID uint, IDRest ...uint) UserQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (UserQuerySet) Limit

func (qs UserQuerySet) Limit(limit int) UserQuerySet

Limit is an autogenerated method nolint: dupl

func (UserQuerySet) One

func (qs UserQuerySet) One(ret *User) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (UserQuerySet) OrderAscByCreatedAt

func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByDeletedAt

func (qs UserQuerySet) OrderAscByDeletedAt() UserQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByID

func (qs UserQuerySet) OrderAscByID() UserQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderAscByUpdatedAt

func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByCreatedAt

func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByDeletedAt

func (qs UserQuerySet) OrderDescByDeletedAt() UserQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByID

func (qs UserQuerySet) OrderDescByID() UserQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (UserQuerySet) OrderDescByUpdatedAt

func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtEq

func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGt

func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtGte

func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLt

func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtLte

func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (UserQuerySet) UpdatedAtNe

func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (UserQuerySet) UsernameEq

func (qs UserQuerySet) UsernameEq(username string) UserQuerySet

UsernameEq is an autogenerated method nolint: dupl

func (UserQuerySet) UsernameIn

func (qs UserQuerySet) UsernameIn(username string, usernameRest ...string) UserQuerySet

UsernameIn is an autogenerated method nolint: dupl

func (UserQuerySet) UsernameNe

func (qs UserQuerySet) UsernameNe(username string) UserQuerySet

UsernameNe is an autogenerated method nolint: dupl

func (UserQuerySet) UsernameNotIn

func (qs UserQuerySet) UsernameNotIn(username string, usernameRest ...string) UserQuerySet

UsernameNotIn is an autogenerated method nolint: dupl

type UserUpdater

type UserUpdater struct {
	// contains filtered or unexported fields
}

UserUpdater is an User updates manager

func NewUserUpdater

func NewUserUpdater(db *gorm.DB) UserUpdater

NewUserUpdater creates new User updater

func (UserUpdater) SetCreatedAt

func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetID

func (u UserUpdater) SetID(ID uint) UserUpdater

SetID is an autogenerated method nolint: dupl

func (UserUpdater) SetUpdatedAt

func (u UserUpdater) SetUpdatedAt(updatedAt time.Time) UserUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (UserUpdater) SetUsername

func (u UserUpdater) SetUsername(username string) UserUpdater

SetUsername is an autogenerated method nolint: dupl

func (UserUpdater) Update

func (u UserUpdater) Update() error

Update is an autogenerated method nolint: dupl

type Wallet

type Wallet struct {
	gorm.Model

	Name string
	// Phone number
	WalletID    uint64
	Blocked     bool
	Token       string `gorm:"unique_index"`
	TokenExpiry time.Time

	Balance float64
	Limit   uint

	TotalMonthIncoming float64
	TotalMonthOutgoing float64
	TotalSynced        time.Time

	// userID
	OwnerID uint

	GroupID uint

	WalletCounters WalletCounters `gorm:"-"`
}

Wallet qiwi wallet credentials and setting gen:qs

func GetAllWallets

func GetAllWallets() (res []Wallet, err error)

GetAllWallets returns all wallets. Used for synchronizer

func GetWallet

func GetWallet(walletID uint, userIDs ...uint) (wallet *Wallet, err error)

GetWallet returns wallet by their ID

func GroupWallets

func GroupWallets(groupID uint) (res []Wallet, err error)

GroupWallets returns all group wallet

func (*Wallet) Create

func (o *Wallet) Create(db *gorm.DB) error

Create is an autogenerated method nolint: dupl

func (*Wallet) Delete

func (o *Wallet) Delete(db *gorm.DB) error

Delete is an autogenerated method nolint: dupl

func (Wallet) String

func (w Wallet) String() string

func (*Wallet) Update

func (o *Wallet) Update(db *gorm.DB, fields ...walletDBSchemaField) error

Update updates Wallet fields by primary key

type WalletCounters added in v0.0.2

type WalletCounters struct {
	TodayTxnCount int     `gorm:"column:count"`
	TodayTxnSum   float64 `gorm:"column:sum"`
}

WalletCounters special counters (stat) for wallet

func GetWalletCounters added in v0.0.2

func GetWalletCounters(walletID uint) (wc WalletCounters, err error)

GetWalletCounters returns wallet stat

type WalletQuerySet

type WalletQuerySet struct {
	// contains filtered or unexported fields
}

WalletQuerySet is an queryset type for Wallet

func NewWalletQuerySet

func NewWalletQuerySet(db *gorm.DB) WalletQuerySet

NewWalletQuerySet constructs new WalletQuerySet

func (WalletQuerySet) All

func (qs WalletQuerySet) All(ret *[]Wallet) error

All is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceEq

func (qs WalletQuerySet) BalanceEq(balance float64) WalletQuerySet

BalanceEq is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceGt

func (qs WalletQuerySet) BalanceGt(balance float64) WalletQuerySet

BalanceGt is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceGte

func (qs WalletQuerySet) BalanceGte(balance float64) WalletQuerySet

BalanceGte is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceIn

func (qs WalletQuerySet) BalanceIn(balance float64, balanceRest ...float64) WalletQuerySet

BalanceIn is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceLt

func (qs WalletQuerySet) BalanceLt(balance float64) WalletQuerySet

BalanceLt is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceLte

func (qs WalletQuerySet) BalanceLte(balance float64) WalletQuerySet

BalanceLte is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceNe

func (qs WalletQuerySet) BalanceNe(balance float64) WalletQuerySet

BalanceNe is an autogenerated method nolint: dupl

func (WalletQuerySet) BalanceNotIn

func (qs WalletQuerySet) BalanceNotIn(balance float64, balanceRest ...float64) WalletQuerySet

BalanceNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) BlockedEq

func (qs WalletQuerySet) BlockedEq(blocked bool) WalletQuerySet

BlockedEq is an autogenerated method nolint: dupl

func (WalletQuerySet) BlockedIn

func (qs WalletQuerySet) BlockedIn(blocked bool, blockedRest ...bool) WalletQuerySet

BlockedIn is an autogenerated method nolint: dupl

func (WalletQuerySet) BlockedNe

func (qs WalletQuerySet) BlockedNe(blocked bool) WalletQuerySet

BlockedNe is an autogenerated method nolint: dupl

func (WalletQuerySet) BlockedNotIn

func (qs WalletQuerySet) BlockedNotIn(blocked bool, blockedRest ...bool) WalletQuerySet

BlockedNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) Count

func (qs WalletQuerySet) Count() (int, error)

Count is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtEq

func (qs WalletQuerySet) CreatedAtEq(createdAt time.Time) WalletQuerySet

CreatedAtEq is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtGt

func (qs WalletQuerySet) CreatedAtGt(createdAt time.Time) WalletQuerySet

CreatedAtGt is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtGte

func (qs WalletQuerySet) CreatedAtGte(createdAt time.Time) WalletQuerySet

CreatedAtGte is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtLt

func (qs WalletQuerySet) CreatedAtLt(createdAt time.Time) WalletQuerySet

CreatedAtLt is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtLte

func (qs WalletQuerySet) CreatedAtLte(createdAt time.Time) WalletQuerySet

CreatedAtLte is an autogenerated method nolint: dupl

func (WalletQuerySet) CreatedAtNe

func (qs WalletQuerySet) CreatedAtNe(createdAt time.Time) WalletQuerySet

CreatedAtNe is an autogenerated method nolint: dupl

func (WalletQuerySet) Delete

func (qs WalletQuerySet) Delete() error

Delete is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtEq

func (qs WalletQuerySet) DeletedAtEq(deletedAt time.Time) WalletQuerySet

DeletedAtEq is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtGt

func (qs WalletQuerySet) DeletedAtGt(deletedAt time.Time) WalletQuerySet

DeletedAtGt is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtGte

func (qs WalletQuerySet) DeletedAtGte(deletedAt time.Time) WalletQuerySet

DeletedAtGte is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtIsNotNull

func (qs WalletQuerySet) DeletedAtIsNotNull() WalletQuerySet

DeletedAtIsNotNull is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtIsNull

func (qs WalletQuerySet) DeletedAtIsNull() WalletQuerySet

DeletedAtIsNull is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtLt

func (qs WalletQuerySet) DeletedAtLt(deletedAt time.Time) WalletQuerySet

DeletedAtLt is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtLte

func (qs WalletQuerySet) DeletedAtLte(deletedAt time.Time) WalletQuerySet

DeletedAtLte is an autogenerated method nolint: dupl

func (WalletQuerySet) DeletedAtNe

func (qs WalletQuerySet) DeletedAtNe(deletedAt time.Time) WalletQuerySet

DeletedAtNe is an autogenerated method nolint: dupl

func (WalletQuerySet) GetUpdater

func (qs WalletQuerySet) GetUpdater() WalletUpdater

GetUpdater is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDEq

func (qs WalletQuerySet) GroupIDEq(groupID uint) WalletQuerySet

GroupIDEq is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDGt

func (qs WalletQuerySet) GroupIDGt(groupID uint) WalletQuerySet

GroupIDGt is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDGte

func (qs WalletQuerySet) GroupIDGte(groupID uint) WalletQuerySet

GroupIDGte is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDIn

func (qs WalletQuerySet) GroupIDIn(groupID uint, groupIDRest ...uint) WalletQuerySet

GroupIDIn is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDLt

func (qs WalletQuerySet) GroupIDLt(groupID uint) WalletQuerySet

GroupIDLt is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDLte

func (qs WalletQuerySet) GroupIDLte(groupID uint) WalletQuerySet

GroupIDLte is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDNe

func (qs WalletQuerySet) GroupIDNe(groupID uint) WalletQuerySet

GroupIDNe is an autogenerated method nolint: dupl

func (WalletQuerySet) GroupIDNotIn

func (qs WalletQuerySet) GroupIDNotIn(groupID uint, groupIDRest ...uint) WalletQuerySet

GroupIDNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) IDEq

func (qs WalletQuerySet) IDEq(ID uint) WalletQuerySet

IDEq is an autogenerated method nolint: dupl

func (WalletQuerySet) IDGt

func (qs WalletQuerySet) IDGt(ID uint) WalletQuerySet

IDGt is an autogenerated method nolint: dupl

func (WalletQuerySet) IDGte

func (qs WalletQuerySet) IDGte(ID uint) WalletQuerySet

IDGte is an autogenerated method nolint: dupl

func (WalletQuerySet) IDIn

func (qs WalletQuerySet) IDIn(ID uint, IDRest ...uint) WalletQuerySet

IDIn is an autogenerated method nolint: dupl

func (WalletQuerySet) IDLt

func (qs WalletQuerySet) IDLt(ID uint) WalletQuerySet

IDLt is an autogenerated method nolint: dupl

func (WalletQuerySet) IDLte

func (qs WalletQuerySet) IDLte(ID uint) WalletQuerySet

IDLte is an autogenerated method nolint: dupl

func (WalletQuerySet) IDNe

func (qs WalletQuerySet) IDNe(ID uint) WalletQuerySet

IDNe is an autogenerated method nolint: dupl

func (WalletQuerySet) IDNotIn

func (qs WalletQuerySet) IDNotIn(ID uint, IDRest ...uint) WalletQuerySet

IDNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) Limit

func (qs WalletQuerySet) Limit(limit int) WalletQuerySet

Limit is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitEq

func (qs WalletQuerySet) LimitEq(limit uint) WalletQuerySet

LimitEq is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitGt

func (qs WalletQuerySet) LimitGt(limit uint) WalletQuerySet

LimitGt is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitGte

func (qs WalletQuerySet) LimitGte(limit uint) WalletQuerySet

LimitGte is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitIn

func (qs WalletQuerySet) LimitIn(limit uint, limitRest ...uint) WalletQuerySet

LimitIn is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitLt

func (qs WalletQuerySet) LimitLt(limit uint) WalletQuerySet

LimitLt is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitLte

func (qs WalletQuerySet) LimitLte(limit uint) WalletQuerySet

LimitLte is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitNe

func (qs WalletQuerySet) LimitNe(limit uint) WalletQuerySet

LimitNe is an autogenerated method nolint: dupl

func (WalletQuerySet) LimitNotIn

func (qs WalletQuerySet) LimitNotIn(limit uint, limitRest ...uint) WalletQuerySet

LimitNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) NameEq

func (qs WalletQuerySet) NameEq(name string) WalletQuerySet

NameEq is an autogenerated method nolint: dupl

func (WalletQuerySet) NameIn

func (qs WalletQuerySet) NameIn(name string, nameRest ...string) WalletQuerySet

NameIn is an autogenerated method nolint: dupl

func (WalletQuerySet) NameNe

func (qs WalletQuerySet) NameNe(name string) WalletQuerySet

NameNe is an autogenerated method nolint: dupl

func (WalletQuerySet) NameNotIn

func (qs WalletQuerySet) NameNotIn(name string, nameRest ...string) WalletQuerySet

NameNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) One

func (qs WalletQuerySet) One(ret *Wallet) error

One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched

func (WalletQuerySet) OrderAscByBalance

func (qs WalletQuerySet) OrderAscByBalance() WalletQuerySet

OrderAscByBalance is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByCreatedAt

func (qs WalletQuerySet) OrderAscByCreatedAt() WalletQuerySet

OrderAscByCreatedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByDeletedAt

func (qs WalletQuerySet) OrderAscByDeletedAt() WalletQuerySet

OrderAscByDeletedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByGroupID

func (qs WalletQuerySet) OrderAscByGroupID() WalletQuerySet

OrderAscByGroupID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByID

func (qs WalletQuerySet) OrderAscByID() WalletQuerySet

OrderAscByID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByLimit

func (qs WalletQuerySet) OrderAscByLimit() WalletQuerySet

OrderAscByLimit is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByOwnerID

func (qs WalletQuerySet) OrderAscByOwnerID() WalletQuerySet

OrderAscByOwnerID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByTokenExpiry

func (qs WalletQuerySet) OrderAscByTokenExpiry() WalletQuerySet

OrderAscByTokenExpiry is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByTotalMonthIncoming

func (qs WalletQuerySet) OrderAscByTotalMonthIncoming() WalletQuerySet

OrderAscByTotalMonthIncoming is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByTotalMonthOutgoing

func (qs WalletQuerySet) OrderAscByTotalMonthOutgoing() WalletQuerySet

OrderAscByTotalMonthOutgoing is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByTotalSynced

func (qs WalletQuerySet) OrderAscByTotalSynced() WalletQuerySet

OrderAscByTotalSynced is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByUpdatedAt

func (qs WalletQuerySet) OrderAscByUpdatedAt() WalletQuerySet

OrderAscByUpdatedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderAscByWalletID

func (qs WalletQuerySet) OrderAscByWalletID() WalletQuerySet

OrderAscByWalletID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByBalance

func (qs WalletQuerySet) OrderDescByBalance() WalletQuerySet

OrderDescByBalance is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByCreatedAt

func (qs WalletQuerySet) OrderDescByCreatedAt() WalletQuerySet

OrderDescByCreatedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByDeletedAt

func (qs WalletQuerySet) OrderDescByDeletedAt() WalletQuerySet

OrderDescByDeletedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByGroupID

func (qs WalletQuerySet) OrderDescByGroupID() WalletQuerySet

OrderDescByGroupID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByID

func (qs WalletQuerySet) OrderDescByID() WalletQuerySet

OrderDescByID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByLimit

func (qs WalletQuerySet) OrderDescByLimit() WalletQuerySet

OrderDescByLimit is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByOwnerID

func (qs WalletQuerySet) OrderDescByOwnerID() WalletQuerySet

OrderDescByOwnerID is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByTokenExpiry

func (qs WalletQuerySet) OrderDescByTokenExpiry() WalletQuerySet

OrderDescByTokenExpiry is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByTotalMonthIncoming

func (qs WalletQuerySet) OrderDescByTotalMonthIncoming() WalletQuerySet

OrderDescByTotalMonthIncoming is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByTotalMonthOutgoing

func (qs WalletQuerySet) OrderDescByTotalMonthOutgoing() WalletQuerySet

OrderDescByTotalMonthOutgoing is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByTotalSynced

func (qs WalletQuerySet) OrderDescByTotalSynced() WalletQuerySet

OrderDescByTotalSynced is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByUpdatedAt

func (qs WalletQuerySet) OrderDescByUpdatedAt() WalletQuerySet

OrderDescByUpdatedAt is an autogenerated method nolint: dupl

func (WalletQuerySet) OrderDescByWalletID

func (qs WalletQuerySet) OrderDescByWalletID() WalletQuerySet

OrderDescByWalletID is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDEq

func (qs WalletQuerySet) OwnerIDEq(ownerID uint) WalletQuerySet

OwnerIDEq is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDGt

func (qs WalletQuerySet) OwnerIDGt(ownerID uint) WalletQuerySet

OwnerIDGt is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDGte

func (qs WalletQuerySet) OwnerIDGte(ownerID uint) WalletQuerySet

OwnerIDGte is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDIn

func (qs WalletQuerySet) OwnerIDIn(ownerID uint, ownerIDRest ...uint) WalletQuerySet

OwnerIDIn is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDLt

func (qs WalletQuerySet) OwnerIDLt(ownerID uint) WalletQuerySet

OwnerIDLt is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDLte

func (qs WalletQuerySet) OwnerIDLte(ownerID uint) WalletQuerySet

OwnerIDLte is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDNe

func (qs WalletQuerySet) OwnerIDNe(ownerID uint) WalletQuerySet

OwnerIDNe is an autogenerated method nolint: dupl

func (WalletQuerySet) OwnerIDNotIn

func (qs WalletQuerySet) OwnerIDNotIn(ownerID uint, ownerIDRest ...uint) WalletQuerySet

OwnerIDNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) PreloadWalletCounters added in v0.0.4

func (qs WalletQuerySet) PreloadWalletCounters() WalletQuerySet

PreloadWalletCounters is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenEq

func (qs WalletQuerySet) TokenEq(token string) WalletQuerySet

TokenEq is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryEq

func (qs WalletQuerySet) TokenExpiryEq(tokenExpiry time.Time) WalletQuerySet

TokenExpiryEq is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryGt

func (qs WalletQuerySet) TokenExpiryGt(tokenExpiry time.Time) WalletQuerySet

TokenExpiryGt is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryGte

func (qs WalletQuerySet) TokenExpiryGte(tokenExpiry time.Time) WalletQuerySet

TokenExpiryGte is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryLt

func (qs WalletQuerySet) TokenExpiryLt(tokenExpiry time.Time) WalletQuerySet

TokenExpiryLt is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryLte

func (qs WalletQuerySet) TokenExpiryLte(tokenExpiry time.Time) WalletQuerySet

TokenExpiryLte is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenExpiryNe

func (qs WalletQuerySet) TokenExpiryNe(tokenExpiry time.Time) WalletQuerySet

TokenExpiryNe is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenIn

func (qs WalletQuerySet) TokenIn(token string, tokenRest ...string) WalletQuerySet

TokenIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenNe

func (qs WalletQuerySet) TokenNe(token string) WalletQuerySet

TokenNe is an autogenerated method nolint: dupl

func (WalletQuerySet) TokenNotIn

func (qs WalletQuerySet) TokenNotIn(token string, tokenRest ...string) WalletQuerySet

TokenNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingEq

func (qs WalletQuerySet) TotalMonthIncomingEq(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingEq is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingGt

func (qs WalletQuerySet) TotalMonthIncomingGt(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingGt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingGte

func (qs WalletQuerySet) TotalMonthIncomingGte(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingGte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingIn

func (qs WalletQuerySet) TotalMonthIncomingIn(totalMonthIncoming float64, totalMonthIncomingRest ...float64) WalletQuerySet

TotalMonthIncomingIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingLt

func (qs WalletQuerySet) TotalMonthIncomingLt(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingLt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingLte

func (qs WalletQuerySet) TotalMonthIncomingLte(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingLte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingNe

func (qs WalletQuerySet) TotalMonthIncomingNe(totalMonthIncoming float64) WalletQuerySet

TotalMonthIncomingNe is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthIncomingNotIn

func (qs WalletQuerySet) TotalMonthIncomingNotIn(totalMonthIncoming float64, totalMonthIncomingRest ...float64) WalletQuerySet

TotalMonthIncomingNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingEq

func (qs WalletQuerySet) TotalMonthOutgoingEq(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingEq is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingGt

func (qs WalletQuerySet) TotalMonthOutgoingGt(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingGt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingGte

func (qs WalletQuerySet) TotalMonthOutgoingGte(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingGte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingIn

func (qs WalletQuerySet) TotalMonthOutgoingIn(totalMonthOutgoing float64, totalMonthOutgoingRest ...float64) WalletQuerySet

TotalMonthOutgoingIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingLt

func (qs WalletQuerySet) TotalMonthOutgoingLt(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingLt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingLte

func (qs WalletQuerySet) TotalMonthOutgoingLte(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingLte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingNe

func (qs WalletQuerySet) TotalMonthOutgoingNe(totalMonthOutgoing float64) WalletQuerySet

TotalMonthOutgoingNe is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalMonthOutgoingNotIn

func (qs WalletQuerySet) TotalMonthOutgoingNotIn(totalMonthOutgoing float64, totalMonthOutgoingRest ...float64) WalletQuerySet

TotalMonthOutgoingNotIn is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedEq

func (qs WalletQuerySet) TotalSyncedEq(totalSynced time.Time) WalletQuerySet

TotalSyncedEq is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedGt

func (qs WalletQuerySet) TotalSyncedGt(totalSynced time.Time) WalletQuerySet

TotalSyncedGt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedGte

func (qs WalletQuerySet) TotalSyncedGte(totalSynced time.Time) WalletQuerySet

TotalSyncedGte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedLt

func (qs WalletQuerySet) TotalSyncedLt(totalSynced time.Time) WalletQuerySet

TotalSyncedLt is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedLte

func (qs WalletQuerySet) TotalSyncedLte(totalSynced time.Time) WalletQuerySet

TotalSyncedLte is an autogenerated method nolint: dupl

func (WalletQuerySet) TotalSyncedNe

func (qs WalletQuerySet) TotalSyncedNe(totalSynced time.Time) WalletQuerySet

TotalSyncedNe is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtEq

func (qs WalletQuerySet) UpdatedAtEq(updatedAt time.Time) WalletQuerySet

UpdatedAtEq is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtGt

func (qs WalletQuerySet) UpdatedAtGt(updatedAt time.Time) WalletQuerySet

UpdatedAtGt is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtGte

func (qs WalletQuerySet) UpdatedAtGte(updatedAt time.Time) WalletQuerySet

UpdatedAtGte is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtLt

func (qs WalletQuerySet) UpdatedAtLt(updatedAt time.Time) WalletQuerySet

UpdatedAtLt is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtLte

func (qs WalletQuerySet) UpdatedAtLte(updatedAt time.Time) WalletQuerySet

UpdatedAtLte is an autogenerated method nolint: dupl

func (WalletQuerySet) UpdatedAtNe

func (qs WalletQuerySet) UpdatedAtNe(updatedAt time.Time) WalletQuerySet

UpdatedAtNe is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDEq

func (qs WalletQuerySet) WalletIDEq(walletID uint64) WalletQuerySet

WalletIDEq is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDGt

func (qs WalletQuerySet) WalletIDGt(walletID uint64) WalletQuerySet

WalletIDGt is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDGte

func (qs WalletQuerySet) WalletIDGte(walletID uint64) WalletQuerySet

WalletIDGte is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDIn

func (qs WalletQuerySet) WalletIDIn(walletID uint64, walletIDRest ...uint64) WalletQuerySet

WalletIDIn is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDLt

func (qs WalletQuerySet) WalletIDLt(walletID uint64) WalletQuerySet

WalletIDLt is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDLte

func (qs WalletQuerySet) WalletIDLte(walletID uint64) WalletQuerySet

WalletIDLte is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDNe

func (qs WalletQuerySet) WalletIDNe(walletID uint64) WalletQuerySet

WalletIDNe is an autogenerated method nolint: dupl

func (WalletQuerySet) WalletIDNotIn

func (qs WalletQuerySet) WalletIDNotIn(walletID uint64, walletIDRest ...uint64) WalletQuerySet

WalletIDNotIn is an autogenerated method nolint: dupl

type WalletUpdater

type WalletUpdater struct {
	// contains filtered or unexported fields
}

WalletUpdater is an Wallet updates manager

func NewWalletUpdater

func NewWalletUpdater(db *gorm.DB) WalletUpdater

NewWalletUpdater creates new Wallet updater

func (WalletUpdater) SetBalance

func (u WalletUpdater) SetBalance(balance float64) WalletUpdater

SetBalance is an autogenerated method nolint: dupl

func (WalletUpdater) SetBlocked

func (u WalletUpdater) SetBlocked(blocked bool) WalletUpdater

SetBlocked is an autogenerated method nolint: dupl

func (WalletUpdater) SetCreatedAt

func (u WalletUpdater) SetCreatedAt(createdAt time.Time) WalletUpdater

SetCreatedAt is an autogenerated method nolint: dupl

func (WalletUpdater) SetGroupID

func (u WalletUpdater) SetGroupID(groupID uint) WalletUpdater

SetGroupID is an autogenerated method nolint: dupl

func (WalletUpdater) SetID

func (u WalletUpdater) SetID(ID uint) WalletUpdater

SetID is an autogenerated method nolint: dupl

func (WalletUpdater) SetLimit

func (u WalletUpdater) SetLimit(limit uint) WalletUpdater

SetLimit is an autogenerated method nolint: dupl

func (WalletUpdater) SetName

func (u WalletUpdater) SetName(name string) WalletUpdater

SetName is an autogenerated method nolint: dupl

func (WalletUpdater) SetOwnerID

func (u WalletUpdater) SetOwnerID(ownerID uint) WalletUpdater

SetOwnerID is an autogenerated method nolint: dupl

func (WalletUpdater) SetToken

func (u WalletUpdater) SetToken(token string) WalletUpdater

SetToken is an autogenerated method nolint: dupl

func (WalletUpdater) SetTokenExpiry

func (u WalletUpdater) SetTokenExpiry(tokenExpiry time.Time) WalletUpdater

SetTokenExpiry is an autogenerated method nolint: dupl

func (WalletUpdater) SetTotalMonthIncoming

func (u WalletUpdater) SetTotalMonthIncoming(totalMonthIncoming float64) WalletUpdater

SetTotalMonthIncoming is an autogenerated method nolint: dupl

func (WalletUpdater) SetTotalMonthOutgoing

func (u WalletUpdater) SetTotalMonthOutgoing(totalMonthOutgoing float64) WalletUpdater

SetTotalMonthOutgoing is an autogenerated method nolint: dupl

func (WalletUpdater) SetTotalSynced

func (u WalletUpdater) SetTotalSynced(totalSynced time.Time) WalletUpdater

SetTotalSynced is an autogenerated method nolint: dupl

func (WalletUpdater) SetUpdatedAt

func (u WalletUpdater) SetUpdatedAt(updatedAt time.Time) WalletUpdater

SetUpdatedAt is an autogenerated method nolint: dupl

func (WalletUpdater) SetWalletCounters added in v0.0.4

func (u WalletUpdater) SetWalletCounters(walletCounters WalletCounters) WalletUpdater

SetWalletCounters is an autogenerated method nolint: dupl

func (WalletUpdater) SetWalletID

func (u WalletUpdater) SetWalletID(walletID uint64) WalletUpdater

SetWalletID is an autogenerated method nolint: dupl

func (WalletUpdater) Update

func (u WalletUpdater) Update() error

Update is an autogenerated method nolint: dupl

Jump to

Keyboard shortcuts

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