package com.ruoyi.web.controller.zhang;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.service.ShareACollectionService;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
@RestController
|
public class ShareACollectionController {
|
|
@Resource
|
ShareACollectionService shareACollectionService;
|
/**
|
* 获取我分享给别人的数据(所有模块)
|
*/
|
@GetMapping("/share/all")
|
public AjaxResult allShareByUserId(Long userId){
|
return shareACollectionService.allMyShare(userId);
|
}
|
|
/**
|
* 获取我下载的数据(所有模块)
|
*/
|
@GetMapping("/collection/all")
|
public AjaxResult allDownloadByUserId(Long userId){
|
return shareACollectionService.allMyDownload(userId);
|
}
|
}
|