|
@@ -264,4 +264,38 @@ public class InnerAPIController extends BaseController {
|
|
|
|
|
|
return ResultData.ok(PageInfo.PageInfo(page));
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ IDownService downService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 检查下载
|
|
|
+ * num 场景码
|
|
|
+ */
|
|
|
+ @GetMapping("/checkDownLoad")
|
|
|
+ public ResultData checkDownLoad(@RequestParam(required = false) String num,
|
|
|
+ @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
+ return ResultData.ok(downService.checkDownLoad(num,isObj));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 下载场景
|
|
|
+ * num 场景码
|
|
|
+ */
|
|
|
+ @GetMapping("/downScene")
|
|
|
+ public ResultData downScene(@RequestParam(required = false) String num,
|
|
|
+ @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
+ return ResultData.ok(downService.down(num,isObj));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 下载场景进度条
|
|
|
+ * num 场景码
|
|
|
+ */
|
|
|
+ @GetMapping("/downloadProcess")
|
|
|
+ public ResultData downloadProcess(@RequestParam(required = false) String num,
|
|
|
+ @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
+ return ResultData.ok(downService.downloadProcess(num,isObj));
|
|
|
+ }
|
|
|
+
|
|
|
}
|