|
|
@@ -4,6 +4,7 @@ import com.taauav.admin.entity.CtAd; |
|
|
|
import com.taauav.app.service.IAdService; |
|
|
|
import com.taauav.app.service.INoticeService; |
|
|
|
import com.taauav.common.bean.Response; |
|
|
|
import com.taauav.common.util.ShiroUtils; |
|
|
|
import com.taauav.front.entity.UserNotice; |
|
|
|
import com.taauav.front.service.IUserAdminService; |
|
|
|
import com.taauav.front.vo.UserAdminVo; |
|
|
@@ -57,9 +58,9 @@ public class HomeController { |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("/userInfo/{userId}") |
|
|
|
public Response userInfo(@PathVariable("userId") Integer userId) { |
|
|
|
UserAdminVo info = adminService.getAdminInfo(userId); |
|
|
|
@GetMapping("/userInfo") |
|
|
|
public Response userInfo() { |
|
|
|
UserAdminVo info = adminService.getAdminInfo(ShiroUtils.getAdminId()); |
|
|
|
if (info != null) { |
|
|
|
info.setAvatar(uploadUrl + info.getAvatar()); |
|
|
|
} |