1234567891011121314151617181920212223242526272829 |
- package com.futu.course.user.controller;
- import com.futu.course.user.service.impl.UserServiceImpl;
- import io.minio.errors.*;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import org.springframework.web.multipart.MultipartFile;
- import java.io.IOException;
- import java.security.InvalidKeyException;
- import java.security.NoSuchAlgorithmException;
- /**
- * @author "杨旭朋"
- * @ClassName: UserController
- * @date 2025年05月07日 14:24
- */
- @RestController
- @RequestMapping("user")
- public class UserController {
- @Autowired
- private UserServiceImpl userService;
- @PostMapping("unload")
- public String unload(MultipartFile multipartFile,Long uid) throws ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException {
- return userService.unload(multipartFile,uid);
- }
- }
|