正在显示
2 个修改的文件
包含
38 行增加
和
1 行删除
services/auth/loginType.go
0 → 100644
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 | +} |
-
请 注册 或 登录 后发表评论