添加文件上传进度条
This commit is contained in:
@@ -9,6 +9,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/oss/fileoss")
|
||||
@@ -40,8 +43,7 @@ public class OssController {
|
||||
//获取进度条
|
||||
@GetMapping("/getSchedule")
|
||||
public R getSchedule(String uid){
|
||||
String percent = ossService.getSchedule(uid);
|
||||
return R.ok().put("percent",percent);
|
||||
return ossService.getSchedule(uid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user