(ctx context.Context, req *schema.AdminAnswerPageReq)
| 74 | } |
| 75 | |
| 76 | func (as *AnswerCommon) AdminSearchList(ctx context.Context, req *schema.AdminAnswerPageReq) ( |
| 77 | resp []*entity.Answer, count int64, err error) { |
| 78 | resp, count, err = as.answerRepo.AdminSearchList(ctx, req) |
| 79 | if handler.GetEnableShortID(ctx) { |
| 80 | for _, item := range resp { |
| 81 | item.ID = uid.EnShortID(item.ID) |
| 82 | item.QuestionID = uid.EnShortID(item.QuestionID) |
| 83 | } |
| 84 | } |
| 85 | return resp, count, err |
| 86 | } |
| 87 | |
| 88 | func (as *AnswerCommon) Search(ctx context.Context, search *entity.AnswerSearch) ([]*entity.Answer, int64, error) { |
| 89 | list, count, err := as.answerRepo.SearchList(ctx, search) |
nothing calls this directly
no test coverage detected