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

Method SearchAnswerIDs

internal/service/answer_common/answer.go:68–74  ·  view source on GitHub ↗
(ctx context.Context, userID, questionID string)

Source from the content-addressed store, hash-verified

66}
67
68func (as *AnswerCommon) SearchAnswerIDs(ctx context.Context, userID, questionID string) ([]string, error) {
69 ids, err := as.answerRepo.GetIDsByUserIDAndQuestionID(ctx, userID, questionID)
70 if err != nil {
71 return nil, err
72 }
73 return ids, nil
74}
75
76func (as *AnswerCommon) AdminSearchList(ctx context.Context, req *schema.AdminAnswerPageReq) (
77 resp []*entity.Answer, count int64, err error) {

Callers 1

InfoMethod · 0.80

Calls 1

Tested by

no test coverage detected