@@ -3,37 +3,27 @@ package org.agt.module.infra.controller.admin.file;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.core.util.URLUtil;
|
||||
import org.agt.framework.common.pojo.CommonResult;
|
||||
import org.agt.framework.common.pojo.PageResult;
|
||||
import org.agt.framework.common.util.object.BeanUtils;
|
||||
import org.agt.framework.tenant.core.aop.TenantIgnore;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.*;
|
||||
import org.agt.module.infra.dal.dataobject.file.FileDO;
|
||||
import org.agt.module.infra.service.file.FileService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Parameters;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.annotation.security.PermitAll;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.Valid;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.agt.framework.common.pojo.CommonResult;
|
||||
import org.agt.framework.common.pojo.PageResult;
|
||||
import org.agt.framework.common.util.object.BeanUtils;
|
||||
import org.agt.framework.tenant.core.aop.TenantIgnore;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.FileCreateReqVO;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.FilePageReqVO;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.FilePresignedUrlRespVO;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.FileRespVO;
|
||||
import org.agt.module.infra.controller.admin.file.vo.file.FileUploadReqVO;
|
||||
import org.agt.module.infra.dal.dataobject.file.FileDO;
|
||||
import org.agt.module.infra.service.file.FileService;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import static org.agt.framework.common.pojo.CommonResult.success;
|
||||
@@ -86,7 +76,7 @@ public class FileController {
|
||||
}
|
||||
|
||||
@GetMapping("/{configId}/get/**")
|
||||
@PreAuthorize("@ss.hasPermission('license:license:download')")
|
||||
@PermitAll
|
||||
@TenantIgnore
|
||||
@Operation(summary = "下载文件")
|
||||
@Parameter(name = "configId", description = "配置编号", required = true)
|
||||
|
||||
Reference in New Issue
Block a user