service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	Core *core.Core

	UserRepo *repository.UserRepository
}

func NewAuthService

func NewAuthService(c *core.Core, userRepo *repository.UserRepository) *AuthService

func (*AuthService) Login

func (*AuthService) Me

func (*AuthService) Register

type BlogService

type BlogService struct {
	Core *core.Core

	BlogRepo *repository.BlogRepository
}

func NewBlogService

func NewBlogService(c *core.Core, blogRepo *repository.BlogRepository) *BlogService

func (*BlogService) Create

func (*BlogService) Delete

func (s *BlogService) Delete(ctx context.Context, id uint64) (err error)

func (*BlogService) GetAllBlog

func (s *BlogService) GetAllBlog(ctx context.Context) (result []transformer.BlogTransformer, err error)

func (*BlogService) GetByID

func (s *BlogService) GetByID(ctx context.Context, id uint64) (result transformer.BlogTransformer, err error)

func (*BlogService) Update

Jump to

Keyboard shortcuts

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