Skip to content

Commit eb3884d

Browse files
committed
登录接口
1 parent a28400d commit eb3884d

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

0 commit comments

Comments
 (0)