|
@@ -2,6 +2,8 @@ package com.fdkankan.modeldemo.controller;
|
|
|
|
|
|
|
|
|
|
import com.fdkankan.modeldemo.bean.ResultData;
|
|
import com.fdkankan.modeldemo.bean.ResultData;
|
|
|
|
+import com.fdkankan.modeldemo.service.SceneConvertLogService;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -18,11 +20,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
@RequestMapping("/convert")
|
|
@RequestMapping("/convert")
|
|
public class SceneController {
|
|
public class SceneController {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SceneConvertLogService sceneConvertLogService;
|
|
|
|
+
|
|
@GetMapping(value = "/ping")
|
|
@GetMapping(value = "/ping")
|
|
public ResultData ping(){
|
|
public ResultData ping(){
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/test")
|
|
|
|
+ public ResultData test(){
|
|
|
|
+ return ResultData.ok(sceneConvertLogService.list());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|