获取用户信息调整

This commit is contained in:
tianliyong 2022-12-09 14:13:18 +08:00
parent ca96f76846
commit 17d96cb562

View File

@ -38,7 +38,6 @@ import static cn.axzo.oss.common.enums.CodeEnum.FILE_NAME_TOO_LONG;
* @author zhangtianyu
* @date 2022/4/14 2:56 PM
**/
@PreBuildContext
@RestController
@RequestMapping("/webApi")
public class WebFileController {
@ -75,6 +74,7 @@ public class WebFileController {
@PostMapping("/v2/file")
@CrossOrigin
@SneakyThrows
@PreBuildContext
public CommonResponse<FileInformationVo> uploadV2(@Valid @RequestParam String appCode,
@Valid @RequestParam String bizScene,
@Valid @RequestParam String serviceName,
@ -101,6 +101,7 @@ public class WebFileController {
@SneakyThrows
@PostMapping("/v1/file/getUrl")
@CrossOrigin
@PreBuildContext
public CommonResponse<List<FindFileUrlVo>> getUrl(@Valid @RequestBody FindFileUrlDto dto) {
List<FindFileUrlResponse> response = fileService.findFileUrl(dto);
return CommonResponse.success(BeanConverter.convert(response, FindFileUrlVo.class));
@ -109,6 +110,7 @@ public class WebFileController {
@SneakyThrows
@GetMapping("/v1/file/download")
@CrossOrigin
@PreBuildContext
public void download(@Valid @RequestParam String fileKey, HttpServletResponse response) {
ServerFileDownloadDto dto = ServerFileDownloadDto.builder()
.fileKey(fileKey)