MCPcopy
hub / github.com/apache/answer / checkIsVote

Method checkIsVote

internal/service/comment/comment_service.go:509–512  ·  view source on GitHub ↗
(ctx context.Context, userID, commentID string)

Source from the content-addressed store, hash-verified

507}
508
509func (cs *CommentService) checkIsVote(ctx context.Context, userID, commentID string) (isVote bool) {
510 status := cs.voteCommon.GetVoteStatus(ctx, commentID, userID)
511 return len(status) > 0
512}
513
514// GetCommentPersonalWithPage get personal comment list page
515func (cs *CommentService) GetCommentPersonalWithPage(ctx context.Context, req *schema.GetCommentPersonalWithPageReq) (

Callers 2

GetCommentMethod · 0.95

Calls 1

GetVoteStatusMethod · 0.65

Tested by

no test coverage detected