service

package
v0.0.0-...-367fef7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 6 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type BlogService

type BlogService struct {
	v1.UnimplementedBlogServiceServer
	// contains filtered or unexported fields
}

func NewBlogService

func NewBlogService(article *biz.ArticleUsecase, logger *zap.Logger) *BlogService

func (*BlogService) CreateArticle

func (s *BlogService) CreateArticle(ctx context.Context, req *v1.CreateArticleRequest) (*v1.CreateArticleReply, error)

func (*BlogService) DeleteArticle

func (s *BlogService) DeleteArticle(ctx context.Context, req *v1.DeleteArticleRequest) (*v1.DeleteArticleReply, error)

func (*BlogService) GetArticle

func (s *BlogService) GetArticle(ctx context.Context, req *v1.GetArticleRequest) (*v1.GetArticleReply, error)

func (*BlogService) ListArticle

func (s *BlogService) ListArticle(ctx context.Context, req *v1.ListArticleRequest) (*v1.ListArticleReply, error)

func (*BlogService) UpdateArticle

func (s *BlogService) UpdateArticle(ctx context.Context, req *v1.UpdateArticleRequest) (*v1.UpdateArticleReply, error)

type CommentService

type CommentService struct {
	v1.UnimplementedCommentServiceServer
	// contains filtered or unexported fields
}

func NewCommentService

func NewCommentService(log *zap.Logger, comment *biz.CommentUsecase) *CommentService

func (*CommentService) CreateComment

func (*CommentService) ListArticleComment

func (c *CommentService) ListArticleComment(ctx context.Context, req *v1.ListCommentReq) (*v1.ListCommentReply, error)

Jump to

Keyboard shortcuts

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