|
@@ -1,14 +1,14 @@
|
|
|
-package com.usky.demo.controller.web;
|
|
|
+package com.usky.meeting.controller.web;
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.usky.demo.annotation.FaceLog;
|
|
|
-import com.usky.demo.domain.Face;
|
|
|
-import com.usky.demo.service.FaceService;
|
|
|
-import com.usky.demo.service.vo.FaceResultVO;
|
|
|
+import com.usky.meeting.annotation.FaceLog;
|
|
|
+import com.usky.meeting.domain.MeetingFace;
|
|
|
+import com.usky.meeting.service.MeetingFaceService;
|
|
|
+import com.usky.meeting.service.vo.FaceResultVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -26,16 +25,15 @@ import java.util.Date;
|
|
|
* </p>
|
|
|
*
|
|
|
* @author zyj
|
|
|
- * @since 2024-03-06
|
|
|
+ * @since 2024-03-08
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/face")
|
|
|
+@RequestMapping("/meetingFace")
|
|
|
@Api("人脸验证接口")
|
|
|
@Slf4j
|
|
|
-public class FaceController {
|
|
|
-
|
|
|
+public class MeetingFaceController {
|
|
|
@Autowired
|
|
|
- FaceService faceService;
|
|
|
+ MeetingFaceService faceService;
|
|
|
|
|
|
@PostMapping("/vef")
|
|
|
@ApiOperation(value="人脸验证", notes="根据传入的base64编码和数据的base64编码进行对比")
|
|
@@ -52,7 +50,7 @@ public class FaceController {
|
|
|
@RequestParam(required = false) String faceName,
|
|
|
@RequestParam(required = false) String faceStatus
|
|
|
){
|
|
|
- IPage<Face> page = faceService.page(new Page(current, size), new QueryWrapper<Face>()
|
|
|
+ IPage<MeetingFace> page = faceService.page(new Page(current, size), new QueryWrapper<MeetingFace>()
|
|
|
.like(StrUtil.isNotBlank(faceName),"face_name",faceName)
|
|
|
.like(StrUtil.isNotBlank(faceStatus),"face_status",faceStatus));
|
|
|
return FaceResultVO.success(page);
|
|
@@ -74,7 +72,7 @@ public class FaceController {
|
|
|
|
|
|
@PostMapping("/save")
|
|
|
@ApiOperation(value = "添加")
|
|
|
- public FaceResultVO save(@RequestBody Face face){
|
|
|
+ public FaceResultVO save(@RequestBody MeetingFace face){
|
|
|
face.setVefNum(0);
|
|
|
face.setCreateTime(LocalDateTime.now());
|
|
|
faceService.save(face);
|
|
@@ -83,10 +81,9 @@ public class FaceController {
|
|
|
|
|
|
@PostMapping("/update")
|
|
|
@ApiOperation(value = "修改")
|
|
|
- public FaceResultVO update(@RequestBody Face face){
|
|
|
+ public FaceResultVO update(@RequestBody MeetingFace face){
|
|
|
faceService.updateById(face);
|
|
|
return FaceResultVO.success("修改成功");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|