|
@@ -1,75 +0,0 @@
|
|
|
-package com.fdkankan.manage_jp.controller;
|
|
|
-
|
|
|
-
|
|
|
-import com.fdkankan.common.util.JwtUtil;
|
|
|
-import com.fdkankan.manage_jp.common.Result;
|
|
|
-import com.fdkankan.manage_jp.entity.User;
|
|
|
-import com.fdkankan.manage_jp.httpClient.client.FdKKClient;
|
|
|
-import com.fdkankan.manage_jp.service.IDownService;
|
|
|
-import com.fdkankan.manage_jp.service.ISceneProService;
|
|
|
-import com.fdkankan.manage_jp.service.IUserRoleService;
|
|
|
-import com.fdkankan.manage_jp.service.IUserService;
|
|
|
-import com.fdkankan.manage_jp.vo.request.SceneParam;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.Set;
|
|
|
-
|
|
|
-/**
|
|
|
- * <p>
|
|
|
- * pro场景表 前端控制器
|
|
|
- * </p>
|
|
|
- *
|
|
|
- * @author
|
|
|
- * @since 2022-12-30
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/manage_jp/user/scene")
|
|
|
-public class UserSceneController extends BaseController{
|
|
|
-
|
|
|
- @Autowired
|
|
|
- ISceneProService sceneProService;
|
|
|
- @Autowired
|
|
|
- IUserService userService;
|
|
|
- @Autowired
|
|
|
- IUserRoleService userRoleService;
|
|
|
- @Autowired
|
|
|
- IDownService downService;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 检查下载
|
|
|
- * num 场景码
|
|
|
- */
|
|
|
- @GetMapping("/checkDownLoad")
|
|
|
- public Result checkDownLoad(@RequestParam(required = false) String num,
|
|
|
- @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
- return Result.success(downService.checkDownLoad(num,isObj));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 下载场景
|
|
|
- * num 场景码
|
|
|
- */
|
|
|
- @GetMapping("/downScene")
|
|
|
- public Result downScene(@RequestParam(required = false) String num,
|
|
|
- @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
- return Result.success(downService.down(num,isObj));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 下载场景进度条
|
|
|
- * num 场景码
|
|
|
- */
|
|
|
- @GetMapping("/downloadProcess")
|
|
|
- public Result downloadProcess(@RequestParam(required = false) String num,
|
|
|
- @RequestParam(required = false,defaultValue = "0") Integer isObj){
|
|
|
- return Result.success(downService.downloadProcess(num,isObj));
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
-
|