db

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	AccountMysql *gorm.DB
	LoginRedis   *redis.Client
	// contains filtered or unexported fields
}

func NewStore

func NewStore(config *config.Config) *Store

NewStore 创建一个新的 store。

func (*Store) GetComboTokenByAccountId added in v1.0.5

func (s *Store) GetComboTokenByAccountId(accountId string) string

func (*Store) QueryAccountByFieldAccountId

func (s *Store) QueryAccountByFieldAccountId(AccountId uint) *database.Account

func (*Store) QueryAccountByFieldUsername

func (s *Store) QueryAccountByFieldUsername(Username string) *database.Account

查询账号

func (*Store) SetComboTokenByAccountId added in v1.0.5

func (s *Store) SetComboTokenByAccountId(accountId, comboToken string) string

func (*Store) UpdateAccountFieldByFieldName

func (s *Store) UpdateAccountFieldByFieldName(account *database.Account) (uint, error)

添加新账号

Jump to

Keyboard shortcuts

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