MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewEmailRepository

Function NewEmailRepository

internal/repository/email.go:25–30  ·  view source on GitHub ↗

NewEmailRepository 创建并返回一个新的 smsRepository 实例

(cache cache.EmailCache, l *zap.Logger)

Source from the content-addressed store, hash-verified

23
24// NewEmailRepository 创建并返回一个新的 smsRepository 实例
25func NewEmailRepository(cache cache.EmailCache, l *zap.Logger) EmailRepository {
26 return &emailRepository{
27 cache: cache,
28 l: l,
29 }
30}
31
32func (e emailRepository) SendCode(ctx context.Context, email string) error {
33 e.l.Info("[emailRepository.SendCode]", zap.String("email", email))

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected