1 changed files with 0 additions and 30 deletions
@ -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…
Reference in new issue