| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sangeshenbian.SystemUserVo; |
| | | import com.panzhihua.common.service.sangeshenbian.SystemUserService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.sangeshenbian.model.entity.Banner; |
| | | import com.panzhihua.sangeshenbian.model.entity.SystemUser; |
| | | import com.panzhihua.sangeshenbian.model.query.BasePage; |
| | |
| | | private final IMessageNotificationService messageNotificationService; |
| | | private final IComplaintService complaintService; |
| | | private final ISystemUserService systemUserService; |
| | | private final UserService userService; |
| | | @ApiOperation("获取banner列表") |
| | | @GetMapping("/banner-list") |
| | | public R<List<Banner>> getBannerList() { |
| | |
| | | @GetMapping("/current-user-info") |
| | | @ApiOperation("获取三个身边当前用户信息 用于判断用户是否是上级") |
| | | public R<SystemUser> getCurrentUserInfo() { |
| | | return R.ok(systemUserService.getSystemUserByPhone(getLoginUserInfo().getPhone()).get()); |
| | | return R.ok(systemUserService.getSystemUserByPhone(getLoginUserInfo().getPhone()).orElse(null)); |
| | | } |
| | | } |