service

package
v0.0.0-...-075c139 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 7 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 NewBookService

func NewBookService(db *reposqlc.Queries) *Book

func (*Book) Create

func (s *Book) Create(params dto.BookCreateRequest) error

func (*Book) Delete

func (s *Book) Delete(bookId string) error

func (*Book) Detail

func (s *Book) Detail(bookId string) (res dto.BookDetailResponse, err error)

func (*Book) Read

func (s *Book) Read(params dto.BookRequest) (res []dto.BookResponse, total int64, err error)

func (*Book) Update

func (s *Book) Update(bookId string, params dto.BookCreateRequest) error

Jump to

Keyboard shortcuts

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