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

Method AddUserOperationLog

internal/repository/sms.go:66–68  ·  view source on GitHub ↗

AddUserOperationLog 添加用户验证码行为日志

(ctx context.Context, log dao.VCodeSmsLog)

Source from the content-addressed store, hash-verified

64
65// AddUserOperationLog 添加用户验证码行为日志
66func (s *smsRepository) AddUserOperationLog(ctx context.Context, log dao.VCodeSmsLog) error {
67 return s.dao.Insert(ctx, log)
68}
69
70func (s *smsRepository) SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error) {
71 return s.cache.SetNX(ctx, number, value, expiration)

Callers 1

SendCodeMethod · 0.95

Calls 1

InsertMethod · 0.65

Tested by

no test coverage detected