Documentation ¶
Index ¶
- type Repository
- type SlideService
- func (s *SlideService) GetPrevNext(ctx context.Context, channelID, p int) (prev int, next int, err domain.Error)
- func (s *SlideService) GetSlideURL(ctx context.Context, channelID, p int) (url string, page int, err domain.Error)
- func (s *SlideService) UpdateCurrentPage(ctx context.Context, channelID, p int) domain.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type SlideService ¶
type SlideService struct {
// contains filtered or unexported fields
}
func NewSlideService ¶
func NewSlideService(_ context.Context, repo Repository) *SlideService
func (*SlideService) GetPrevNext ¶
func (s *SlideService) GetPrevNext(ctx context.Context, channelID, p int) (prev int, next int, err domain.Error)
GetPrevNext returns the previous and next page number
func (*SlideService) GetSlideURL ¶
func (s *SlideService) GetSlideURL(ctx context.Context, channelID, p int) (url string, page int, err domain.Error)
GetSlideURL returns the slide URL specified by page. If p is out of scope, it would return page 1.
func (*SlideService) UpdateCurrentPage ¶
UpdateCurrentPage marked the specified page to be enabled, and all other pages are disabled.
Click to show internal directories.
Click to hide internal directories.