Documentation ¶
Index ¶
- type Service
- func (s *Service) AddBookChapterComment(c *gin.Context, req *protos.ChapterCommentReq, userI *protos.Person) (err error)
- func (s *Service) AddReaderByBook(c context.Context, book_id, chapter_id, mid int32)
- func (s *Service) AddshelfByBook(c context.Context, book_id, chapter_id, mid int32)
- func (s *Service) BookInfo(c *gin.Context, req *protos.ChapterReq, userInfo *protos.Person) (resp *protos.BookInfoResp, err error)
- func (s *Service) BookList(c *gin.Context, req *protos.BookListReq) (resp protos.BookListResp, err error)
- func (s *Service) GetBookChapter(c *gin.Context, req *protos.ChapterReq) (resp protos.BookListResp, err error)
- func (s *Service) GetBookChapterComment(c *gin.Context, req *protos.ChapterReq) (resp protos.BookListResp, err error)
- func (s *Service) GetBookChapterInfo(c *gin.Context, req *protos.ChapterReq, userI *protos.Person) (resp protos.BookChapterResp, err error)
- func (s *Service) GetBookChapterNext(c *gin.Context, req *protos.ChapterReq) (resp map[string]interface{}, err error)
- func (s *Service) GetCategory(c *gin.Context, req *protos.CategoryReq) interface{}
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 (*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 (*Service) AddshelfByBook ¶ added in v1.0.0
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{}
Click to show internal directories.
Click to hide internal directories.