biz

package
v0.0.0-...-86dbffa Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT, MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type CatalogRepo

type CatalogRepo interface {
	GetGame(ctx context.Context, id int64) (*Game, error)
	ListGame(ctx context.Context, pageNum, pageSize int64) ([]*Game, error)
}

type CatalogUsecase

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

func NewCatalogUsecase

func NewCatalogUsecase(repo CatalogRepo, logger log.Logger) *CatalogUsecase

func (*CatalogUsecase) GetGame

func (uc *CatalogUsecase) GetGame(ctx context.Context, id int64) (*Game, error)

func (*CatalogUsecase) ListGame

func (uc *CatalogUsecase) ListGame(ctx context.Context, pageNum, pageSize int64) ([]*Game, error)

type Game

type Game struct {
	Id          int64
	Name        string
	Description string
	Count       int64
}

Jump to

Keyboard shortcuts

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