|
@@ -29,6 +29,7 @@ import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.web.support.Naked;
|
|
|
import cn.com.qmth.examcloud.web.support.StatusResponseX;
|
|
|
+import cn.com.qmth.examcloud.web.support.WithoutStackTrace;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
/**
|
|
@@ -62,6 +63,7 @@ public class AuthController extends ControllerSupport {
|
|
|
ImgCodeService imgCodeService;
|
|
|
|
|
|
@Naked
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "登入", notes = "")
|
|
|
@PostMapping("login")
|
|
|
public Object login(@RequestBody LoginInfo loginInfo, HttpServletRequest request) {
|
|
@@ -92,6 +94,7 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "登出", notes = "")
|
|
|
@PostMapping("logout")
|
|
|
public void logout() {
|
|
@@ -100,6 +103,7 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
@Naked
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "获取登录用户", notes = "")
|
|
|
@PostMapping("getLoginUser")
|
|
|
public User getLoginUser(@RequestParam String key, @RequestParam String token) {
|
|
@@ -115,6 +119,7 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
@Naked
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "第三方机构接入", notes = "")
|
|
|
@PostMapping("/thirdPartyAccess")
|
|
|
public User thirdPartyAccess(HttpServletRequest request, @RequestParam Long orgId,
|
|
@@ -128,6 +133,7 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
@Naked
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
|
@PostMapping("sendVerificationCode4Student")
|
|
|
public void sendVerificationCode4Student(@RequestParam(required = true) String phone,
|
|
@@ -144,12 +150,14 @@ public class AuthController extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
@Naked
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
|
@PostMapping("/sendVerificationCode")
|
|
|
public void sendVerificationCode(@RequestParam String phone) {
|
|
|
smsCodeService.sendSmsCode(phone);
|
|
|
}
|
|
|
|
|
|
+ @WithoutStackTrace(true)
|
|
|
@ApiOperation(value = "绑定手机号", notes = "")
|
|
|
@PostMapping("/bindSecurityPhone")
|
|
|
public void bindSecurityPhone(@RequestParam String phone,
|