|
|
|
@ -22,6 +22,7 @@ import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
import org.apache.shiro.authz.annotation.Logical; |
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -77,7 +78,7 @@ public class SysFilesController { |
|
|
|
|
@NoRepeatSubmit |
|
|
|
|
@ApiOperation(value = "新增") |
|
|
|
|
@PostMapping("/upload") |
|
|
|
|
// @RequiresPermissions(value = {"sysFiles:add", "sysContent:update", "sysContent:add"}, logical = Logical.OR)
|
|
|
|
|
// @RequiresPermissions(value = {"sysFiles:add", "sysContent:update", "sysContent:add"}, logical = Logical.OR)
|
|
|
|
|
public UEditorResultVO add( |
|
|
|
|
@RequestParam(required = false) String action, |
|
|
|
|
@RequestParam(value = "file") MultipartFile file, FileParameters fileParameters) throws Exception { |
|
|
|
|