service

package
v0.0.0-...-8ed6344 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostServiceImple

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

func NewPostService

func NewPostService(postrepo post.PostRepository) *PostServiceImple

func (*PostServiceImple) DeletePost

func (ps *PostServiceImple) DeletePost(id int) (*entities.Post, []error)

func (*PostServiceImple) Post

func (ps *PostServiceImple) Post(id int) (*entities.Post, []error)

func (*PostServiceImple) Posts

func (ps *PostServiceImple) Posts() ([]entities.Post, []error)

func (*PostServiceImple) StorePost

func (ps *PostServiceImple) StorePost(pst *entities.Post) (*entities.Post, []error)

func (*PostServiceImple) UpdatePost

func (ps *PostServiceImple) UpdatePost(pst *entities.Post) (*entities.Post, []error)

Jump to

Keyboard shortcuts

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