mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-02 03:47:50 +08:00
/sso/getData 示例返回值改为 SaResult 类型
This commit is contained in:
parent
5173c2637b
commit
7c290ad24a
@ -66,7 +66,7 @@ public class SsoServerController {
|
||||
|
||||
// 示例:获取数据接口(用于在模式三下,为 client 端开放拉取数据的接口)
|
||||
@RequestMapping("/sso/getData")
|
||||
public Object getData(String apiType, String loginId) {
|
||||
public SaResult getData(String apiType, String loginId) {
|
||||
System.out.println("---------------- 获取数据 ----------------");
|
||||
System.out.println("apiType=" + apiType);
|
||||
System.out.println("loginId=" + loginId);
|
||||
|
@ -115,7 +115,7 @@ forest.log-enabled: false
|
||||
``` java
|
||||
// 示例:获取数据接口(用于在模式三下,为 client 端开放拉取数据的接口)
|
||||
@RequestMapping("/sso/getData")
|
||||
public Object getData(String apiType, String loginId) {
|
||||
public SaResult getData(String apiType, String loginId) {
|
||||
System.out.println("---------------- 获取数据 ----------------");
|
||||
System.out.println("apiType=" + apiType);
|
||||
System.out.println("loginId=" + loginId);
|
||||
|
Loading…
Reference in New Issue
Block a user