(ctx context.Context, number string)
| 88 | } |
| 89 | |
| 90 | func (s *smsRepository) ReleaseLock(ctx context.Context, number string) error { |
| 91 | return s.cache.ReleaseLock(ctx, number) |
| 92 | } |
| 93 | |
| 94 | func (s *smsRepository) SendCode(ctx context.Context, number string) error { |
| 95 | // 限制:用户一分钟内只能发送一次sms请求 && 用户一天内只能发送5次SMS请求 |
nothing calls this directly
no test coverage detected