作者 唐旭辉

新增多种登录方式的接口设定

... ... @@ -21,4 +21,5 @@
*.sum
ability
\ No newline at end of file
ability
/vendor
... ...
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
}
... ...