MCPcopy Index your code
hub / github.com/apache/answer / UpdateAccepted

Method UpdateAccepted

internal/service/question_common/question.go:182–187  ·  view source on GitHub ↗
(ctx context.Context, questionID, answerID string)

Source from the content-addressed store, hash-verified

180}
181
182func (qs *QuestionCommon) UpdateAccepted(ctx context.Context, questionID, answerID string) error {
183 question := &entity.Question{}
184 question.ID = questionID
185 question.AcceptedAnswerID = answerID
186 return qs.questionRepo.UpdateAccepted(ctx, question)
187}
188
189func (qs *QuestionCommon) UpdateLastAnswer(ctx context.Context, questionID, answerID string) error {
190 question := &entity.Question{}

Callers

nothing calls this directly

Calls 1

UpdateAcceptedMethod · 0.65

Tested by

no test coverage detected