service

package
v0.0.0-...-91de801 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreatePost(ctx context.Context, post *entity.Post) (int, error)
	RecoverPosts(ctx context.Context) ([]model.Post, error)
	RecoverPost(ctx context.Context, id int) (*model.Post, error)
	ChangePost(ctx context.Context, post *entity.Post) (int64, error)
	RemovePost(ctx context.Context, id int) (int64, error)

	RecoverImageMetadata(ctx context.Context, uuid string) (*model.Image, error)
	RecoverAllImageMetadata(ctx context.Context, limit int) (
		[]model.Image, error,
	)
	CreateImageMetadata(ctx context.Context, image *entity.Image) error
	RemoveImage(ctx context.Context, uuid string) (int64, error)
}

Service is the business logic of the application.

func New

func New(repo repository.Repository) Service

Jump to

Keyboard shortcuts

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