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

Method SaveCode

internal/service/export/email_service.go:94–99  ·  view source on GitHub ↗

SaveCode save code

(ctx context.Context, userID, code, codeContent string)

Source from the content-addressed store, hash-verified

92
93// SaveCode save code
94func (es *EmailService) SaveCode(ctx context.Context, userID, code, codeContent string) {
95 err := es.emailRepo.SetCode(ctx, userID, code, codeContent, constant.UserEmailCodeCacheTime)
96 if err != nil {
97 log.Error(err)
98 }
99}
100
101// SendAndSaveCode send email and save code
102func (es *EmailService) SendAndSaveCode(ctx context.Context, userID, toEmailAddr, subject, body, code, codeContent string) {

Callers 1

GetUserActivationMethod · 0.80

Calls 1

SetCodeMethod · 0.65

Tested by

no test coverage detected