12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.fdkankan.contro.controller;
- import com.fdkankan.contro.service.IInnerService;
- import com.fdkankan.web.response.ResultData;
- import lombok.extern.log4j.Log4j2;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 场景文件上传模块
- */
- @Log4j2
- @RestController
- @RequestMapping("/api/inner")
- public class InnerController {
- @Autowired
- private IInnerService innerService;
- @GetMapping("uploadArtificialResult")
- public ResultData uploadArtificialResult(String num) throws Exception {
- innerService.uploadArtificialResult(num);
- return ResultData.ok();
- }
- /**
- * 内部用接口,修改场景为计算失败状态,app可以出发补拍重传
- * @param num
- * @return
- * @throws Exception
- */
- @GetMapping("updateSceneFail")
- public ResultData updateSceneFail(String num) throws Exception {
- innerService.updateSceneFail(num);
- return ResultData.ok();
- }
- }
|