Search in sources :

Example 1 with ShareListVO

use of com.qiwenshare.file.vo.share.ShareListVO in project qiwen-file by qiwenshare.

the class ShareController method shareList.

@Operation(summary = "查看已分享列表", description = "查看已分享列表", tags = { "share" })
@GetMapping(value = "/shareList")
@ResponseBody
public RestResult shareList(ShareListDTO shareListDTO) {
    JwtUser sessionUserBean = SessionUtil.getSession();
    List<ShareListVO> shareList = shareService.selectShareList(shareListDTO, sessionUserBean.getUserId());
    int total = shareService.selectShareListTotalCount(shareListDTO, sessionUserBean.getUserId());
    Map<String, Object> map = new HashMap<>();
    map.put("total", total);
    map.put("list", shareList);
    return RestResult.success().data(map);
}
Also used : ShareListVO(com.qiwenshare.file.vo.share.ShareListVO) JwtUser(com.qiwenshare.common.util.security.JwtUser) Operation(io.swagger.v3.oas.annotations.Operation)

Aggregations

JwtUser (com.qiwenshare.common.util.security.JwtUser)1 ShareListVO (com.qiwenshare.file.vo.share.ShareListVO)1 Operation (io.swagger.v3.oas.annotations.Operation)1