Browse Source

删除错误提交的SSOLoginController

master
wxz 5 years ago
parent
commit
e8e885c02e
  1. 30
      epmet-auth/src/main/java/com/epmet/controller/SSOLoginController.java

30
epmet-auth/src/main/java/com/epmet/controller/SSOLoginController.java

@ -1,30 +0,0 @@
package com.epmet.controller;
import com.epmet.commons.thirdplat.apiservice.jcet.JcetApiService;
import com.epmet.commons.thirdplat.dto.result.jcet.UserInfoResultDTO;
import com.epmet.commons.tools.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.UnsupportedEncodingException;
@RestController
@RequestMapping("sso")
public class SSOLoginController {
@Autowired
private JcetApiService jcetApiService;
@PostMapping("login")
public Result login() {
UserInfoResultDTO userInfo = null;
try {
userInfo = jcetApiService.getUserInfoByTicket("wxz");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return new Result().ok(userInfo);
}
}
Loading…
Cancel
Save