storyusecase

package
v0.0.0-...-1202c29 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package usecase implements application business logic. Each logic group in own file.

Index

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 New

New -.

func (*StoryUseCase) FindStories

func (uc *StoryUseCase) FindStories(ctx context.Context, f entity.Story, p *common.Pagination) ([]entity.Story, error)

func (*StoryUseCase) FindStory

func (uc *StoryUseCase) FindStory(ctx context.Context, slug string) (entity.Story, error)

func (*StoryUseCase) FindStoryChapter

func (uc *StoryUseCase) FindStoryChapter(ctx context.Context, sSlug string, cSlug string) (entity.Chapter, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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