Commit 27b7070f authored by wdy's avatar wdy

查询用户照片存储列表

parent 6044bc64
......@@ -22,7 +22,7 @@ public interface UserPhotoStorageService extends IService<UserPhotoStorage>
* @param request 用户照片存储
* @return 用户照片存储集合
*/
public List<PhotoStorageVO> selectUserPhotoStorageList(UserPhotoStorageListRequest request);
public List<PhotoStorageVO> selectUserPhotoStorageList();
/**
* 新增用户照片存储
......
......@@ -34,12 +34,15 @@ public class UserPhotoStorageServiceImpl extends ServiceImpl<UserPhotoStorageMap
/**
* 查询用户照片存储列表
*
* @param request 用户照片存储
* @return 用户照片存储
*/
@Override
public List<PhotoStorageVO> selectUserPhotoStorageList(UserPhotoStorageListRequest request)
public List<PhotoStorageVO> selectUserPhotoStorageList()
{
// 构建登录用户
LoginUser loginUser = SecurityUtils.getLoginUser();
UserPhotoStorageListRequest request = new UserPhotoStorageListRequest();
request.setUserId(loginUser.getUserId());
List<UserPhotoStorage> userPhotoStorages = userPhotoStorageMapper.selectUserPhotoStorageList(request);
// 创建一个VOList,用于返回数据
List<PhotoStorageVO> photoStorageVOList = new ArrayList<>();
......
......@@ -48,7 +48,7 @@ public class UserPhotoStorageController extends BaseController
public TableDataInfo<PhotoStorageVO> list(@Validated @RequestBody UserPhotoStorageListRequest request)
{
// startPage();
List<PhotoStorageVO> list = userPhotoStorageService.selectUserPhotoStorageList(request);
List<PhotoStorageVO> list = userPhotoStorageService.selectUserPhotoStorageList();
return getDataTable(list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment