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

Method AID

internal/schema/event_schema.go:65–71  ·  view source on GitHub ↗

AID get answer id

(answerID, userID string)

Source from the content-addressed store, hash-verified

63
64// AID get answer id
65func (e *EventMsg) AID(answerID, userID string) *EventMsg {
66 if len(answerID) > 0 {
67 e.AnswerID = uid.DeShortID(answerID)
68 }
69 e.AnswerUserID = userID
70 return e
71}
72
73// CID get comment id
74func (e *EventMsg) CID(comment, userID string) *EventMsg {

Callers 9

QuestionInfoMethod · 0.80
AddCommentMethod · 0.80
RemoveAnswerMethod · 0.80
InsertMethod · 0.80
UpdateMethod · 0.80
AcceptAnswerMethod · 0.80
sendEventMethod · 0.80
AddOrUpdateReactionMethod · 0.80
sendEventMethod · 0.80

Calls 1

DeShortIDFunction · 0.92

Tested by

no test coverage detected