|
@@ -2,8 +2,11 @@ package cn.com.qmth.ac.controller;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -13,6 +16,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import cn.com.qmth.ac.bean.RedirectParam;
|
|
|
import cn.com.qmth.ac.service.CommonService;
|
|
|
import cn.com.qmth.ac.util.Result;
|
|
|
+import cn.com.qmth.ac.util.ServletUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
@@ -23,6 +27,8 @@ import io.swagger.annotations.ApiResponses;
|
|
|
@Validated
|
|
|
public class AuthController {
|
|
|
|
|
|
+ private static final Logger LOG = LoggerFactory.getLogger(AuthController.class);
|
|
|
+
|
|
|
@Resource
|
|
|
private CommonService commonService;
|
|
|
|
|
@@ -43,4 +49,12 @@ public class AuthController {
|
|
|
return js;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "cas鉴权接口")
|
|
|
+ @ApiResponses({ @ApiResponse(code = 200, message = "返回消息", response = Result.class) })
|
|
|
+ @PostMapping(value = "login/{schoolCode}")
|
|
|
+ public void authenticationPost(@ApiParam(value = "学校编码") @PathVariable("schoolCode") String schoolCode) {
|
|
|
+ String userAgent = ServletUtil.getRequest().getHeader("User-Agent");
|
|
|
+ LOG.warn("********************************userAgent:" + userAgent);
|
|
|
+
|
|
|
+ }
|
|
|
}
|