作者 唐旭辉

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

@@ -22,3 +22,4 @@ @@ -22,3 +22,4 @@
22 *.sum 22 *.sum
23 23
24 ability 24 ability
  25 +/vendor
  1 +package auth
  2 +
  3 +type ILoginAuth interface {
  4 + LoginAuth() error
  5 +}
  6 +
  7 +//TODO
  8 +//账号密码登录
  9 +type LoginByPassword struct {
  10 +}
  11 +
  12 +//手机短信登录
  13 +type LoginBySms struct {
  14 +}
  15 +
  16 +//其他第三方登录
  17 +type LoginByXxxx struct {
  18 +}
  19 +
  20 +var (
  21 + _ ILoginAuth = LoginByPassword{}
  22 + _ ILoginAuth = LoginBySms{}
  23 + _ ILoginAuth = LoginByXxxx{}
  24 +)
  25 +
  26 +func (o LoginByPassword) LoginAuth() error {
  27 + return nil
  28 +}
  29 +
  30 +func (o LoginBySms) LoginAuth() error {
  31 + return nil
  32 +}
  33 +
  34 +func (o LoginByXxxx) LoginAuth() error {
  35 + return nil
  36 +}