post

package
v0.0.0-...-db3ee06 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 3 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 struct {
	DB *gorm.DB
}

func NewPostService

func NewPostService(db *gorm.DB) *Service

func (*Service) Create

func (postService *Service) Create(post *models.Post)

func (*Service) Delete

func (postService *Service) Delete(post *models.Post)

func (*Service) Update

func (postService *Service) Update(post *models.Post, updatePostRequest *requests.UpdatePostRequest)

type ServiceWrapper

type ServiceWrapper interface {
	Create(post *models.Post)
	Delete(post *models.Post)
	Update(post *models.Post, updatePostRequest *requests.UpdatePostRequest)
}

Jump to

Keyboard shortcuts

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