|
@@ -37,7 +37,7 @@ public class UserAuthRestController {
|
|
|
private BaseInfoService baseInfoService;
|
|
|
|
|
|
@ApiOperation(value = "登录接口", notes = "参数accountType值说明:学生身份证号类型=STUDENT_IDENTITY_NUMBER,学生学号类型=STUDENT_CODE,学生手机号类型=STUDENT_PHONE")
|
|
|
- @RequestMapping(value = "/user/login", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ @RequestMapping(value = {"/user/login","/user/verify"}, method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
public Result<UserInfo> login(@RequestParam String account, @RequestParam String password, @RequestParam String accountType, @RequestParam(required = false) Long rootOrgId,
|
|
|
@RequestParam(required = false) String domain, @RequestHeader String deviceId) throws Exception {
|
|
|
LoginInfo loginInfo = new LoginInfo(account, password, accountType, rootOrgId, domain, deviceId);
|
|
@@ -74,6 +74,12 @@ public class UserAuthRestController {
|
|
|
@RequestParam String newPassword) throws Exception {
|
|
|
return userAuthService.updateStudentPassword(key, token, studentId, password, newPassword);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "重置密码接口")
|
|
|
+ @RequestMapping(value = "/user/reset/password", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
+ public Result updateNewPassword(@RequestHeader String key, @RequestHeader String token, @RequestParam Long studentId, @RequestParam String newPassword) throws Exception {
|
|
|
+ return userAuthService.resetStudentPassword(key, token, newPassword);
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "保存用户绑定的手机号接口")
|
|
|
@RequestMapping(value = "/user/binding/phone", method = {RequestMethod.GET, RequestMethod.POST})
|