SaveCode save code
(ctx context.Context, userID, code, codeContent string)
| 92 | |
| 93 | // SaveCode save code |
| 94 | func (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 |
| 102 | func (es *EmailService) SendAndSaveCode(ctx context.Context, userID, toEmailAddr, subject, body, code, codeContent string) { |
no test coverage detected