AddUserOperationLog 添加用户验证码行为日志
(ctx context.Context, log dao.VCodeSmsLog)
| 64 | |
| 65 | // AddUserOperationLog 添加用户验证码行为日志 |
| 66 | func (s *smsRepository) AddUserOperationLog(ctx context.Context, log dao.VCodeSmsLog) error { |
| 67 | return s.dao.Insert(ctx, log) |
| 68 | } |
| 69 | |
| 70 | func (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) |