repositories

package
v0.0.0-...-85d027c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRepositories

func InitRepositories()

Types

type AuthKeyRepository

type AuthKeyRepository struct {
	// contains filtered or unexported fields
}
var AuthKey *AuthKeyRepository

func (*AuthKeyRepository) Create

func (repo *AuthKeyRepository) Create(authKey *model.AuthKey)

func (*AuthKeyRepository) DeleteByUUID

func (repo *AuthKeyRepository) DeleteByUUID(authKey *model.AuthKey)

func (*AuthKeyRepository) FindAll

func (repo *AuthKeyRepository) FindAll() (authKeys []*model.AuthKey)

func (*AuthKeyRepository) FindByUser

func (repo *AuthKeyRepository) FindByUser(user string) *model.AuthKey

func (*AuthKeyRepository) HasUUID

func (repo *AuthKeyRepository) HasUUID(uuid string) bool

func (*AuthKeyRepository) HasUser

func (repo *AuthKeyRepository) HasUser(user string) bool

func (*AuthKeyRepository) IsAdmin

func (repo *AuthKeyRepository) IsAdmin(uuid string) bool

func (*AuthKeyRepository) UpdateByUser

func (repo *AuthKeyRepository) UpdateByUser(authKey *model.AuthKey)

type GoodsMapperRepository

type GoodsMapperRepository struct {
	// contains filtered or unexported fields
}
var GoodsMapper *GoodsMapperRepository

func (*GoodsMapperRepository) Find

func (repo *GoodsMapperRepository) Find(name string, station string) (goodsMapper []model.GoodsMapper)

Jump to

Keyboard shortcuts

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