【7.6.0】【sys】【permission】初始化首页详细信息接口

pull/57/head
fengshuonan 2023-06-18 22:56:51 +08:00
parent 43df407537
commit 2e1e4fd60b
2 changed files with 39 additions and 4 deletions

View File

@ -5,9 +5,12 @@ import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
import cn.stylefeng.roses.kernel.sys.modular.login.pojo.UserIndexInfo;
import cn.stylefeng.roses.kernel.sys.modular.login.service.UserIndexInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
*
*
@ -19,6 +22,9 @@ import org.springframework.web.bind.annotation.RestController;
@ApiResource(name = "用户信息获取的接口")
public class UserIndexInfoController {
@Resource
private UserIndexInfoService userIndexInfoService;
/**
*
*
@ -27,10 +33,7 @@ public class UserIndexInfoController {
*/
@PostResource(name = "获取用户登录后的信息", path = "/userIndexInfo")
public ResponseData<UserIndexInfo> userIndexInfo() {
return new SuccessResponseData<>();
return new SuccessResponseData<>(userIndexInfoService.getUserIndexInfo());
}
}

View File

@ -0,0 +1,32 @@
package cn.stylefeng.roses.kernel.sys.modular.login.service;
import cn.stylefeng.roses.kernel.auth.api.context.LoginContext;
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
import cn.stylefeng.roses.kernel.sys.modular.login.pojo.UserIndexInfo;
import org.springframework.stereotype.Service;
/**
*
*
* @author fengshuonan
* @since 2023/6/18 22:55
*/
@Service
public class UserIndexInfoService {
/**
*
*
* @author fengshuonan
* @since 2023/6/18 22:55
*/
public UserIndexInfo getUserIndexInfo() {
// 获取当前登录用户
LoginUser loginUser = LoginContext.me().getLoginUser();
return null;
}
}