service

package
v0.0.0-...-6af7d9d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 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 IPostService

type IPostService interface {
	Get(id string) (*model.Post, error)
}

type IUserService

type IUserService interface {
	Get(id string) (*model.User, error)
}

type PostService

type PostService struct {
	Db database.IPostDatabase
}

func (*PostService) Get

func (src *PostService) Get(id string) (*model.Post, error)

type UserService

type UserService struct {
	Db database.IUserDatabase
}

func (*UserService) Get

func (src *UserService) Get(id string) (*model.User, error)

Jump to

Keyboard shortcuts

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