13 lines
217 B
Go
13 lines
217 B
Go
package sms
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
)
|
|
|
|
var ErrProviderConfigInvalid = errors.New("sms provider config invalid")
|
|
|
|
type Provider interface {
|
|
SendLoginCode(ctx context.Context, phone string, code string) error
|
|
}
|