assets

package
v0.0.0-...-8cb3723 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT interface {
	GenerateToken(*model.User) (string, string, error)
}

JWT represents jwt interface

type Service

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

Service represents the auth application service

func NewAssetsService

func NewAssetsService(userRepo model.UserRepo, accountRepo model.AccountRepo, assetRepo model.AssetsRepo, jwt JWT, db orm.DB, log *zap.Logger) *Service

NewAuthService creates new auth service

func (*Service) SearchAssets

func (a *Service) SearchAssets(query string) ([]model.Asset, error)

SearchAssets changes user's avatar

Jump to

Keyboard shortcuts

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