Documentation ¶
Index ¶
- Variables
- func CommentConvert(in db.Comment) *comment.Comment
- type CommentService
- func (s *CommentService) CountCommentByParent(ctx context.Context, req *comment.CountCommentByParentReq) (resp *comment.CountCommentByParentResp, err error)
- func (s *CommentService) CreateComment(ctx context.Context, req *comment.CreateCommentReq) (resp *comment.CreateCommentResp, err error)
- func (s *CommentService) DeleteComment(ctx context.Context, req *comment.DeleteCommentByIdReq) (resp *comment.DeleteCommentByIdResp, err error)
- func (s *CommentService) ListCommentByAuthorIdAndType(ctx context.Context, req *comment.ListCommentByAuthorIdAndTypeReq) (resp *comment.ListCommentByAuthorIdAndTypeResp, err error)
- func (s *CommentService) ListCommentByParent(ctx context.Context, req *comment.ListCommentByParentReq) (resp *comment.ListCommentByParentResp, err error)
- func (s *CommentService) ListCommentByReplyToAndType(ctx context.Context, req *comment.ListCommentByReplyToAndTypeReq) (resp *comment.ListCommentByReplyToAndTypeResp, err error)
- func (s *CommentService) RetrieveCommentById(ctx context.Context, req *comment.RetrieveCommentByIdReq) (resp *comment.RetrieveCommentByIdResp, err error)
- func (s *CommentService) UpdateComment(ctx context.Context, req *comment.UpdateCommentReq) (resp *comment.UpdateCommentResp, err error)
- type ICommentService
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentSet = wire.NewSet( wire.Struct(new(CommentService), "*"), wire.Bind(new(ICommentService), new(*CommentService)), )
Functions ¶
Types ¶
type CommentService ¶
type CommentService struct { Config *config.Config CommentModel mapper.CommentModel HistoryModel mapper.HistoryModel Redis *redis.Redis }
func (*CommentService) CountCommentByParent ¶
func (s *CommentService) CountCommentByParent(ctx context.Context, req *comment.CountCommentByParentReq) (resp *comment.CountCommentByParentResp, err error)
func (*CommentService) CreateComment ¶
func (s *CommentService) CreateComment(ctx context.Context, req *comment.CreateCommentReq) (resp *comment.CreateCommentResp, err error)
func (*CommentService) DeleteComment ¶
func (s *CommentService) DeleteComment(ctx context.Context, req *comment.DeleteCommentByIdReq) (resp *comment.DeleteCommentByIdResp, err error)
func (*CommentService) ListCommentByAuthorIdAndType ¶
func (s *CommentService) ListCommentByAuthorIdAndType(ctx context.Context, req *comment.ListCommentByAuthorIdAndTypeReq) (resp *comment.ListCommentByAuthorIdAndTypeResp, err error)
func (*CommentService) ListCommentByParent ¶
func (s *CommentService) ListCommentByParent(ctx context.Context, req *comment.ListCommentByParentReq) (resp *comment.ListCommentByParentResp, err error)
func (*CommentService) ListCommentByReplyToAndType ¶
func (s *CommentService) ListCommentByReplyToAndType(ctx context.Context, req *comment.ListCommentByReplyToAndTypeReq) (resp *comment.ListCommentByReplyToAndTypeResp, err error)
func (*CommentService) RetrieveCommentById ¶
func (s *CommentService) RetrieveCommentById(ctx context.Context, req *comment.RetrieveCommentByIdReq) (resp *comment.RetrieveCommentByIdResp, err error)
func (*CommentService) UpdateComment ¶
func (s *CommentService) UpdateComment(ctx context.Context, req *comment.UpdateCommentReq) (resp *comment.UpdateCommentResp, err error)
type ICommentService ¶
type ICommentService interface { CreateComment(ctx context.Context, req *comment.CreateCommentReq) (resp *comment.CreateCommentResp, err error) UpdateComment(ctx context.Context, req *comment.UpdateCommentReq) (resp *comment.UpdateCommentResp, err error) DeleteComment(ctx context.Context, req *comment.DeleteCommentByIdReq) (resp *comment.DeleteCommentByIdResp, err error) ListCommentByParent(ctx context.Context, req *comment.ListCommentByParentReq) (resp *comment.ListCommentByParentResp, err error) CountCommentByParent(ctx context.Context, req *comment.CountCommentByParentReq) (resp *comment.CountCommentByParentResp, err error) RetrieveCommentById(ctx context.Context, req *comment.RetrieveCommentByIdReq) (resp *comment.RetrieveCommentByIdResp, err error) ListCommentByAuthorIdAndType(ctx context.Context, req *comment.ListCommentByAuthorIdAndTypeReq) (resp *comment.ListCommentByAuthorIdAndTypeResp, err error) ListCommentByReplyToAndType(ctx context.Context, req *comment.ListCommentByReplyToAndTypeReq) (resp *comment.ListCommentByReplyToAndTypeResp, err error) }
Click to show internal directories.
Click to hide internal directories.