|
|
@ -8,6 +8,8 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import com.shuili.common.utils.FileUploadUtils; |
|
|
|
import com.kms.framework.config.ServerConfig; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.apache.commons.io.IOUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
@ -33,6 +35,7 @@ import cn.dev33.satoken.stp.StpUtil; |
|
|
|
* |
|
|
|
* @author kms |
|
|
|
*/ |
|
|
|
@Api(tags = "通用上传接口") |
|
|
|
@RestController |
|
|
|
public class CommonController |
|
|
|
{ |
|
|
@ -126,6 +129,7 @@ public class CommonController |
|
|
|
/** |
|
|
|
* 通用上传请求 |
|
|
|
*/ |
|
|
|
@ApiOperation("通用上传请求") |
|
|
|
@PostMapping("/common/upload") |
|
|
|
public AjaxResult uploadFile(MultipartFile file) throws Exception |
|
|
|
{ |
|
|
|