派生自 pfms_20210718_old

Jayden
2021-07-18 7df57dc07b6edd9446f5f53ee0a8ad6d7e6363a5
src/main/java/cn/org/xinke/controller/FileController.java
@@ -101,6 +101,7 @@
     * @param curPos 上传文件时所处的目录位置
     * @return Map
     */
    @SuppressWarnings({ "unchecked", "rawtypes" })
    @Login
    @ResponseBody
    @PostMapping("/file/upload")
@@ -416,6 +417,7 @@
     * @param exts
     * @return Map
     */
    @SuppressWarnings({ "rawtypes", "unused" })
    @Login
    @ResponseBody
    @RequestMapping("/api/list")
@@ -551,6 +553,7 @@
     * @param file
     * @return Map
     */
    @SuppressWarnings("rawtypes")
    @Login
    @ResponseBody
    @RequestMapping("/api/del")
@@ -595,6 +598,7 @@
     * @param newFile
     * @return Map
     */
    @SuppressWarnings("rawtypes")
    @Login
    @ResponseBody
    @RequestMapping("/api/rename")
@@ -623,6 +627,7 @@
    /**
     * 获取当前日期
     */
    @SuppressWarnings("unused")
    private String getDate() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/");
        return sdf.format(new Date());
@@ -636,6 +641,7 @@
     * @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 );
@@ -653,6 +659,7 @@
     * @param msg
     * @return Map
     */
    @SuppressWarnings("rawtypes")
    private Map getRS(int code, String msg) {
        return getRS(code, msg, null);
    }
@@ -664,6 +671,7 @@
     * @param dirName
     * @return Map
     */
    @SuppressWarnings("rawtypes")
    @Login
    @ResponseBody
    @RequestMapping("/api/mkdir")
@@ -695,6 +703,7 @@
     * @param time 有效时间(分钟)
     * @return Map
     */
    @SuppressWarnings("rawtypes")
    @Login
    @ResponseBody
    @PostMapping("/api/share")