|
@@ -26,8 +26,7 @@ import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
-import cn.com.qmth.examcloud.web.support.ResponseStatus;
|
|
|
|
-import cn.com.qmth.examcloud.web.support.StatusResponse;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.web.support.StatusResponseX;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -84,7 +83,7 @@ public class AuthController extends ControllerSupport {
|
|
User user = authService.login(loginInfo);
|
|
User user = authService.login(loginInfo);
|
|
|
|
|
|
if (null != alwaysOK && alwaysOK) {
|
|
if (null != alwaysOK && alwaysOK) {
|
|
- return new StatusResponse(ResponseStatus.OK, user);
|
|
|
|
|
|
+ return new StatusResponseX<User>(user);
|
|
} else {
|
|
} else {
|
|
return user;
|
|
return user;
|
|
}
|
|
}
|