bookservice

package
v0.0.0-...-a745c1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

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

func NewBook

func NewBook(logger *slog.Logger, repo *bookusecase.RepoBook) *Book

func (*Book) CreateBook

func (b *Book) CreateBook(ctx context.Context, req *bookentity.CreateBookRequest) (*bookentity.Book, error)

func (*Book) DeleteBook

func (b *Book) DeleteBook(ctx context.Context, req *bookentity.FieldValueReq) error

func (*Book) GetBook

func (b *Book) GetBook(ctx context.Context, req *bookentity.FieldValueReq) (*bookentity.Book, error)

func (*Book) GetBookAll

func (b *Book) GetBookAll(ctx context.Context, req *bookentity.GetAllBookReq) ([]*bookentity.Book, error)

func (*Book) UpdateBook

func (b *Book) UpdateBook(ctx context.Context, req *bookentity.UpdateBookRequest) (*bookentity.Book, error)

Jump to

Keyboard shortcuts

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