FileController.java 970 Bytes
package com.glsx.smart.controller;

import com.glsx.smart.service.SmartSysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>Description:
 * <p>Project: chejia-smart
 *
 * @author wbh
 * @date 2021-03-15
 */
@RestController
@RequestMapping("/file")
public class FileController {
    @Autowired
    private SmartSysFileService sysFileService;

    @RequestMapping(value = "/uploadFile", method = {RequestMethod.POST})
    public void uploadFile(@RequestPart(name = "file") MultipartFile file) {

    }

    @RequestMapping(value = "/deleteFile", method = {RequestMethod.POST})
    public void deleteFile(String fileUrl) {

    }
}