Documentation
¶
Index ¶
- Variables
- type BlogService
- func (s *BlogService) CreateArticle(ctx context.Context, req *v1.CreateArticleRequest) (*v1.CreateArticleReply, error)
- func (s *BlogService) DeleteArticle(ctx context.Context, req *v1.DeleteArticleRequest) (*v1.DeleteArticleReply, error)
- func (s *BlogService) GetArticle(ctx context.Context, req *v1.GetArticleRequest) (*v1.GetArticleReply, error)
- func (s *BlogService) ListArticle(ctx context.Context, req *v1.ListArticleRequest) (*v1.ListArticleReply, error)
- func (s *BlogService) UpdateArticle(ctx context.Context, req *v1.UpdateArticleRequest) (*v1.UpdateArticleReply, error)
- type CommentService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewBlogService, NewCommentService)
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 (c *CommentService) CreateComment(ctx context.Context, req *v1.CreateCommentRequest) (*v1.CreateCommentReply, error)
func (*CommentService) ListArticleComment ¶
func (c *CommentService) ListArticleComment(ctx context.Context, req *v1.ListCommentReq) (*v1.ListCommentReply, error)
Click to show internal directories.
Click to hide internal directories.