提交 bf805f19 authored 作者: yangqi's avatar yangqi

1

上级 d2f4301a
package cn.lefull.api.test;
package cn.lefull.api;
import cn.lefull.common.annotation.NoAuth;
import cn.lefull.common.response.ApiResponse;
import cn.lefull.service.ali.FaceService;
import cn.lefull.service.test.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -11,25 +10,15 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author 杨奇
*/
@RestController
@RequestMapping("/test")
public class TestController {
@Autowired
private TestService testService;
@RequestMapping("/face")
public class FaceController {
@Autowired
private FaceService faceService;
@NoAuth
@GetMapping("/test")
public void test() throws Exception {
List<String> list = faceService.getFaceDbList();
System.out.println(list);
//Test t = this.testService.getTestById(3);
//t.setUserName("测试修改数据库resource");
//this.testService.updateById(t);
}
@NoAuth
@GetMapping("/getFaceDbList")
public ApiResponse<Object> getFaceDbList() throws Exception {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论