|
|
|
@ -1,35 +1,50 @@
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文件名 : FolderController.java
|
|
|
|
|
* 版权 : <版权/公司名>
|
|
|
|
|
* 描述 : <描述>
|
|
|
|
|
* @author chen
|
|
|
|
|
* 版本 : <版本>
|
|
|
|
|
* 修改时间: 2016年9月8日
|
|
|
|
|
* 修改内容: <修改内容>
|
|
|
|
|
*/
|
|
|
|
|
package com.platform.controller;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
|
|
import com.base.BaseController;
|
|
|
|
|
import com.base.CustomException;
|
|
|
|
|
import com.platform.entities.GfsFolderEntity;
|
|
|
|
|
import com.platform.service.IGfsService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <一句话功能简述>
|
|
|
|
|
* <功能详细描述>
|
|
|
|
|
* <一句话功能简述>
|
|
|
|
|
* <功能详细描述>
|
|
|
|
|
* @author chen
|
|
|
|
|
* @version [版本号,2016年9月8日]
|
|
|
|
|
* @see [相关类/方法]
|
|
|
|
|
* @since [产品/模块版本]
|
|
|
|
|
* @version [版本号,2016年9月8日]
|
|
|
|
|
* @see [相关类/方法]
|
|
|
|
|
* @since [产品/模块版本]
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping("/folder")
|
|
|
|
|
public class FolderController extends BaseController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <一句话功能简述>
|
|
|
|
|
* <功能详细描述>
|
|
|
|
|
* @see [类、类#方法、类#成员]
|
|
|
|
|
*/
|
|
|
|
|
public FolderController() {
|
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
|
|
|
|
|
|
@Resource(name = "gfsService")
|
|
|
|
|
private IGfsService gfsService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/getAllSubPathByPath")
|
|
|
|
|
public Object getAllSubPathByPath(String path) throws CustomException {
|
|
|
|
|
System.out.println(path);
|
|
|
|
|
Object result = null;
|
|
|
|
|
if (null != path && !"".equals(path)) {
|
|
|
|
|
System.out.println(path);
|
|
|
|
|
result = gfsService.getFolder(path);
|
|
|
|
|
throw new CustomException("3211", null);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/moveFolder")
|
|
|
|
|
public Object moveFolder(String srcpath, String dstPath) {
|
|
|
|
|
System.out.println(srcpath);
|
|
|
|
|
System.out.println(dstPath);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|