usecase

package
v0.0.0-...-85f739f Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListUC

type ListUC struct {
	// contains filtered or unexported fields
}

func NewListUC

func NewListUC(lr iListRepo, fr iFileRepo) *ListUC

func (*ListUC) Create

func (u *ListUC) Create(l model.List) (model.List, error)

func (*ListUC) DeleteByID

func (u *ListUC) DeleteByID(id uint) error

func (*ListUC) GetAll

func (u *ListUC) GetAll(page, perPage int) ([]model.List, int, error)

func (*ListUC) GetByID

func (u *ListUC) GetByID(id uint) (model.List, error)

func (*ListUC) GetFile

func (u *ListUC) GetFile(l model.List) (io.Reader, string, error)

func (*ListUC) GetRoots

func (u *ListUC) GetRoots(page, perPage int, showSublist bool) ([]model.List, int, error)

func (*ListUC) Update

func (u *ListUC) Update(l model.List) (model.List, error)

func (*ListUC) UpdateFile

func (u *ListUC) UpdateFile(file *multipart.FileHeader, l model.List) (string, error)

Jump to

Keyboard shortcuts

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