瀏覽代碼

重构飞手平台回调接口

tags/v1.0.0^2
wanjing 1 年之前
父節點
當前提交
66c3f7ae58
共有 2 個文件被更改,包括 23 次插入29 次删除
  1. +23
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionController.java
  2. +0
    -26
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/callback/PilotCallbackController.java

+ 23
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionController.java 查看文件

@@ -2,9 +2,7 @@ package com.tuoheng.admin.controller;

import com.tuoheng.admin.dto.InspectionDto;
import com.tuoheng.admin.entity.FlightData;
import com.tuoheng.admin.request.inspection.AddInspectionRequest;
import com.tuoheng.admin.request.inspection.EditInspectionRequest;
import com.tuoheng.admin.request.inspection.QueryInspectionPageListRequest;
import com.tuoheng.admin.request.inspection.*;
import com.tuoheng.admin.service.inspection.IInspectionService;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
@@ -157,4 +155,26 @@ public class InspectionController {
return iInspectionService.getNewInspectionList();
}

/**
* 上传离线视频
*
* @param request
* @return
*/
@PostMapping("/uploadFlightUrl")
public JsonResult uploadFlightUrl(@RequestBody UploadFlightUrlRequest request) {
return iInspectionService.uploadFlightUrl(request);
}

/**
* 修改巡检任务
*
* @param request
* @return
*/
@PostMapping("/updateTaskByCode")
public JsonResult updateTaskByCode(@RequestBody UpdateTaskByCodeRequest request) {
return iInspectionService.updateTaskByCode(request);
}

}

+ 0
- 26
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/callback/PilotCallbackController.java 查看文件

@@ -1,13 +1,8 @@
package com.tuoheng.admin.controller.callback;

import com.tuoheng.admin.request.inspection.UpdateTaskByCodeRequest;
import com.tuoheng.admin.request.inspection.UploadFlightUrlRequest;
import com.tuoheng.admin.service.inspection.IInspectionService;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@@ -26,25 +21,4 @@ public class PilotCallbackController {
@Autowired
private IInspectionService iInspectionService;

/**
* 上传离线视频
*
* @param request
* @return
*/
@PostMapping("/uploadFlightUrl")
public JsonResult uploadFlightUrl(@RequestBody UploadFlightUrlRequest request) {
return iInspectionService.uploadFlightUrl(request);
}

/**
* 修改巡检任务
*
* @param request
* @return
*/
@PostMapping("/updateTaskByCode")
public JsonResult updateTaskByCode(@RequestBody UpdateTaskByCodeRequest request) {
return iInspectionService.updateTaskByCode(request);
}
}

Loading…
取消
儲存