会员信息接口调整
This commit is contained in:
parent
9400c9985c
commit
470c0a000c
@ -2,6 +2,8 @@ package com.sf.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.sf.common.utils.SecurityUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -71,10 +73,12 @@ public class UserMemberController extends BaseController
|
||||
|
||||
/**
|
||||
* 获取会员详细信息,通过用户id
|
||||
* 当前用户
|
||||
*/
|
||||
@GetMapping(value = "/byUser")
|
||||
public AjaxResult getInfoByUser(Long userId)
|
||||
@GetMapping(value = "/currentUser")
|
||||
public AjaxResult getInfoByUser()
|
||||
{
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
return success(userMemberService.selectUserMemberByUserId(userId));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user