mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-07 04:50:38 +00:00
22 lines
445 B
Java
22 lines
445 B
Java
package com.ruoyi.auth.controller;
|
|
|
|
import java.security.Principal;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 身份信息获取
|
|
*
|
|
* @author ruoyi
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/oauth")
|
|
public class UserController
|
|
{
|
|
@RequestMapping("/user")
|
|
public Principal user(Principal user)
|
|
{
|
|
return user;
|
|
}
|
|
}
|