|
|
package auth
|
|
|
|
|
|
type ILoginAuth interface {
|
|
|
LoginAuth() error
|
|
|
}
|
|
|
|
|
|
//TODO
|
|
|
//账号密码登录
|
|
|
type LoginByPassword struct {
|
|
|
}
|
|
|
|
|
|
//手机短信登录
|
|
|
type LoginBySms struct {
|
|
|
}
|
|
|
|
|
|
//其他第三方登录
|
|
|
type LoginByXxxx struct {
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
_ ILoginAuth = LoginByPassword{}
|
|
|
_ ILoginAuth = LoginBySms{}
|
|
|
_ ILoginAuth = LoginByXxxx{}
|
|
|
)
|
|
|
|
|
|
func (o LoginByPassword) LoginAuth() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (o LoginBySms) LoginAuth() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (o LoginByXxxx) LoginAuth() error {
|
|
|
return nil
|
|
|
} |
...
|
...
|
|