usecase

package
v0.0.0-...-02e31d5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	*model.Collection
	Has bool
}

type GachaResult

type GachaResult struct {
	*model.Collection
	Has bool `json:"has"`
}

type RankingUseCase

type RankingUseCase interface {
	ListRankings(ctx context.Context, start int) ([]*model.Ranking, error)
}

type UserUseCase

type UserUseCase interface {
	GetUser(ctx context.Context) (*model.User, error)
	ListUserCollections(ctx context.Context) ([]*Collection, error)
	CreateUserAndToken(ctx context.Context, email string, passward string) (string, error)
	UpdateUser(ctx context.Context, coins, highscore int) (*model.User, error)
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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