|
@@ -27,6 +27,7 @@ import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
|
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
|
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 io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -60,6 +61,7 @@ public class AuthController extends ControllerSupport {
|
|
|
@Autowired
|
|
|
ImgCodeService imgCodeService;
|
|
|
|
|
|
+ @Naked
|
|
|
@ApiOperation(value = "登入", notes = "")
|
|
|
@PostMapping("login")
|
|
|
public Object login(@RequestBody LoginInfo loginInfo, HttpServletRequest request) {
|
|
@@ -97,6 +99,7 @@ public class AuthController extends ControllerSupport {
|
|
|
authService.logout(user);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@ApiOperation(value = "获取登录用户", notes = "")
|
|
|
@PostMapping("getLoginUser")
|
|
|
public User getLoginUser(@RequestParam String key, @RequestParam String token) {
|
|
@@ -111,6 +114,7 @@ public class AuthController extends ControllerSupport {
|
|
|
return authService.getLoginUser(key, token);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@ApiOperation(value = "第三方机构接入", notes = "")
|
|
|
@PostMapping("/thirdPartyAccess")
|
|
|
public User thirdPartyAccess(HttpServletRequest request, @RequestParam Long orgId,
|
|
@@ -123,6 +127,7 @@ public class AuthController extends ControllerSupport {
|
|
|
return authService.thirdPartyAccess(orgId, loginName, appId, timestamp, token, realIp);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
|
@PostMapping("sendVerificationCode4Student")
|
|
|
public void sendVerificationCode4Student(@RequestParam(required = true) String phone,
|
|
@@ -138,6 +143,7 @@ public class AuthController extends ControllerSupport {
|
|
|
smsCodeService.sendSmsCode(phone);
|
|
|
}
|
|
|
|
|
|
+ @Naked
|
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
|
@PostMapping("/sendVerificationCode")
|
|
|
public void sendVerificationCode(@RequestParam String phone) {
|