| | |
| | | * @param curPos 上传文件时所处的目录位置 |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings({ "unchecked", "rawtypes" }) |
| | | @Login |
| | | @ResponseBody |
| | | @PostMapping("/file/upload") |
| | |
| | | * @param exts |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings({ "rawtypes", "unused" }) |
| | | @Login |
| | | @ResponseBody |
| | | @RequestMapping("/api/list") |
| | |
| | | * @param file |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | @Login |
| | | @ResponseBody |
| | | @RequestMapping("/api/del") |
| | |
| | | * @param newFile |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | @Login |
| | | @ResponseBody |
| | | @RequestMapping("/api/rename") |
| | |
| | | /** |
| | | * 获取当前日期 |
| | | */ |
| | | @SuppressWarnings("unused") |
| | | private String getDate() { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/"); |
| | | return sdf.format(new Date()); |
| | |
| | | * @param url |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | private Map getRS(int code, String msg, String url) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put( "code", code ); |
| | |
| | | * @param msg |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | private Map getRS(int code, String msg) { |
| | | return getRS(code, msg, null); |
| | | } |
| | |
| | | * @param dirName |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | @Login |
| | | @ResponseBody |
| | | @RequestMapping("/api/mkdir") |
| | |
| | | * @param time 有效时间(分钟) |
| | | * @return Map |
| | | */ |
| | | @SuppressWarnings("rawtypes") |
| | | @Login |
| | | @ResponseBody |
| | | @PostMapping("/api/share") |