File tree Expand file tree Collapse file tree
core/src/main/java/info/xiaomo/core/base Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package info .xiaomo .core .base ;
2+
3+ import org .springframework .web .bind .annotation .PathVariable ;
4+
5+ import java .util .Date ;
6+
7+ /**
8+ * @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
9+ * @version : 2017/1/13 9:51
10+ */
11+ public interface AuthOperate {
12+
13+
14+ /**
15+ * 登录
16+ *
17+ * @param name 用户名(邮箱或者电话)
18+ * @param password 密码
19+ * @return 结果
20+ */
21+ Result <Boolean > login (@ PathVariable String name , @ PathVariable String password );
22+
23+ /**
24+ * 注册
25+ *
26+ * @param name 用户名(邮箱或者电话)
27+ * @param password 密码
28+ * @return 是否己发送验证码
29+ */
30+ Result <Boolean > register (@ PathVariable String name , @ PathVariable String password );
31+
32+ /**
33+ * 验证
34+ *
35+ * @param validCode 验证码
36+ * @param time 发送时间
37+ * @return 是否验证通过
38+ */
39+ Result <Boolean > validate (@ PathVariable int validCode , @ PathVariable Date time );
40+
41+ }
You can’t perform that action at this time.
0 commit comments