feat(视频):

视频初步
This commit is contained in:
Guwan 2024-12-09 22:49:56 +08:00
parent 71bf63dbc0
commit 93491b2713
1 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.guwan.backend.controller;
import cn.easyes.core.conditions.LambdaEsQueryWrapper;
import cn.hutool.core.collection.CollectionUtil;
import com.arcsoft.face.ActiveDeviceInfo;
import com.arcsoft.face.ActiveFileInfo;
@ -9,6 +10,8 @@ import com.arcsoft.face.enums.ExtractType;
import com.arcsoft.face.toolkit.ImageFactory;
import com.arcsoft.face.toolkit.ImageInfo;
import com.guwan.backend.common.Result;
import com.guwan.backend.es.document.ProductDocument;
import com.guwan.backend.es.mapper.ProductEsMapper;
import com.guwan.backend.face.dto.FaceRecognitionResDTO;
import com.guwan.backend.face.service.FaceEngineService;
import com.guwan.backend.util.MinioUtil;
@ -46,6 +49,10 @@ public class DemoController {
@Autowired
private MinioUtil minioUtil;
@Autowired
private ProductEsMapper productEsMapper;
@PostMapping("/uploadFile")
public Result<String> uploadFile(String bucketName, MultipartFile file){
return Result.success(minioUtil.getUrl(minioUtil.getFileUrl
@ -193,4 +200,17 @@ public class DemoController {
}
@GetMapping("demo222")
public Result<?> demo222() {
System.out.println("111111111111"+productEsMapper.search(new LambdaEsQueryWrapper<ProductDocument>()
.eq(ProductDocument::getPrice, 8999)));
System.out.println(productEsMapper.search(new LambdaEsQueryWrapper<ProductDocument>()
.eq(ProductDocument::getPrice, 8999)).getHits().getHits());
return Result.success("demo222");
}
}