book

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Cache      *trace_redis.RedisInstance
	LocalCache *gocache.Cache
	Dao        *db.StoreDbClient
}

func New

func New() (*Service, error)

func (*Service) AddBookChapterComment added in v1.0.0

func (s *Service) AddBookChapterComment(c *gin.Context, req *protos.ChapterCommentReq, userI *protos.Person) (err error)

AddBookChapterComment

func (*Service) AddReaderByBook added in v1.0.0

func (s *Service) AddReaderByBook(c context.Context, book_id, chapter_id, mid int32)

func (*Service) AddshelfByBook added in v1.0.0

func (s *Service) AddshelfByBook(c context.Context, book_id, chapter_id, mid int32)

func (*Service) BookInfo added in v1.0.0

func (s *Service) BookInfo(c *gin.Context, req *protos.ChapterReq, userInfo *protos.Person) (resp *protos.BookInfoResp, err error)

func (*Service) BookList added in v1.0.0

func (s *Service) BookList(c *gin.Context, req *protos.BookListReq) (resp protos.BookListResp, err error)

func (*Service) GetBookChapter added in v1.0.0

func (s *Service) GetBookChapter(c *gin.Context, req *protos.ChapterReq) (resp protos.BookListResp, err error)

func (*Service) GetBookChapterComment added in v1.0.0

func (s *Service) GetBookChapterComment(c *gin.Context, req *protos.ChapterReq) (resp protos.BookListResp, err error)

GetBookChapterComment

func (*Service) GetBookChapterInfo added in v1.0.0

func (s *Service) GetBookChapterInfo(c *gin.Context, req *protos.ChapterReq, userI *protos.Person) (resp protos.BookChapterResp, err error)

GetBookChapterInfo

func (*Service) GetBookChapterNext added in v1.0.0

func (s *Service) GetBookChapterNext(c *gin.Context, req *protos.ChapterReq) (resp map[string]interface{}, err error)

GetBookChapterNext

func (*Service) GetCategory

func (s *Service) GetCategory(c *gin.Context, req *protos.CategoryReq) interface{}

Jump to

Keyboard shortcuts

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