You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

package com.stone.controller;
import com.stone.base.BaseController;
import com.stone.base.BaseService;
import com.stone.model.vo.PageVO;
import com.stone.service.DownloadService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author zichen
*/
@RequestMapping("/download")
@RestController
public class DownloadController extends BaseController {
@Resource
private DownloadService downloadService;
/**
* 获取service
*
* @return
*/
@Override
public BaseService getService() {
return downloadService;
}
@GetMapping("/pullSeniorPath")
@ResponseBody
public PageVO pullSeniorPath(String id, String type) {
return downloadService.pullSeniorPath(id, type);
}
@GetMapping("/pullIntermediatePath")
@ResponseBody
public PageVO pullIntermediatePath(String id, String type) {
return downloadService.pullIntermediatePath(id, type);
}
}