zqy
2024-11-10 3f34c5afe8e610109dfdfb7d0ca3323332d36e88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
@RequestMapping("/SAndC")
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);
    }
}