Documentation ¶
Overview ¶
Package usecase implements application business logic. Each logic group in own file.
Index ¶
- type Story
- type StoryRepo
- type StoryUseCase
- func (uc *StoryUseCase) FindStories(ctx context.Context, f entity.Story, p *common.Pagination) ([]entity.Story, error)
- func (uc *StoryUseCase) FindStory(ctx context.Context, slug string) (entity.Story, error)
- func (uc *StoryUseCase) FindStoryChapter(ctx context.Context, sSlug string, cSlug string) (entity.Chapter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Story ¶
type Story interface { FindStory(ctx context.Context, url string) (entity.Story, error) FindStories(ctx context.Context, f entity.Story, p *common.Pagination) ([]entity.Story, error) FindStoryChapter(ctx context.Context, sSlug string, cSlug string) (entity.Chapter, error) }
Story -.
type StoryRepo ¶
type StoryRepo interface { FindStory(context.Context, entity.Story, *entity.Story) error FindStories(ctx context.Context, f entity.Story, p *common.Pagination, t *[]entity.Story) error FindStoryChapter(ctx context.Context, storyID int, slug string, c *entity.Chapter) error }
StoryRepo -.
type StoryUseCase ¶
type StoryUseCase struct {
// contains filtered or unexported fields
}
StoryUseCase -.
func (*StoryUseCase) FindStories ¶
func (uc *StoryUseCase) FindStories(ctx context.Context, f entity.Story, p *common.Pagination) ([]entity.Story, error)
func (*StoryUseCase) FindStoryChapter ¶
Click to show internal directories.
Click to hide internal directories.