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

1

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