biz

package
v0.0.0-...-4241208 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT, MIT Imports: 4 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Book

type Book struct {
	Id          int64
	Name        string
	Description string
	Count       int64
	Images      []Image
}

type CatalogRepo

type CatalogRepo interface {
	GetBook(ctx context.Context, id int64) (*Book, error)
	ListBook(ctx context.Context, pageNum, pageSize int64) ([]*Book, error)
}

type CatalogUseCase

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

func NewCatalogUseCase

func NewCatalogUseCase(repo CatalogRepo, logger log.Logger) *CatalogUseCase

func (*CatalogUseCase) GetBook

func (uc *CatalogUseCase) GetBook(ctx context.Context, id int64) (*Book, error)

func (*CatalogUseCase) ListBook

func (uc *CatalogUseCase) ListBook(ctx context.Context, pageNum, pageSize int64) ([]*Book, error)

type Image

type Image struct {
	URL string
}

type User

type User struct {
	Id int64
}

type UserRepo

type UserRepo interface {
}

type UserUseCase

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

func NewUserUseCase

func NewUserUseCase(repo UserRepo, logger log.Logger, us usV1.UserClient) *UserUseCase

Jump to

Keyboard shortcuts

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