(ctx context.Context, userID, questionID string)
| 66 | } |
| 67 | |
| 68 | func (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 | |
| 76 | func (as *AnswerCommon) AdminSearchList(ctx context.Context, req *schema.AdminAnswerPageReq) ( |
| 77 | resp []*entity.Answer, count int64, err error) { |
no test coverage detected