Documentation ¶
Index ¶
- func InitRepositories()
- type AuthKeyRepository
- func (repo *AuthKeyRepository) Create(authKey *model.AuthKey)
- func (repo *AuthKeyRepository) DeleteByUUID(authKey *model.AuthKey)
- func (repo *AuthKeyRepository) FindAll() (authKeys []*model.AuthKey)
- func (repo *AuthKeyRepository) FindByUser(user string) *model.AuthKey
- func (repo *AuthKeyRepository) HasUUID(uuid string) bool
- func (repo *AuthKeyRepository) HasUser(user string) bool
- func (repo *AuthKeyRepository) IsAdmin(uuid string) bool
- func (repo *AuthKeyRepository) UpdateByUser(authKey *model.AuthKey)
- type GoodsMapperRepository
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)
Click to show internal directories.
Click to hide internal directories.