package com.ycwl.basic.controller.pc;

import com.github.pagehelper.PageInfo;
import com.ycwl.basic.model.pc.faceSample.entity.FaceSampleEntity;
import com.ycwl.basic.model.pc.faceSample.req.FaceSampleReqQuery;
import com.ycwl.basic.model.pc.faceSample.resp.FaceSampleRespVO;
import com.ycwl.basic.service.pc.FaceSampleService;
import com.ycwl.basic.utils.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author：longbinbin
 * @Date：2024/12/2 16:33
 */
@Deprecated
@RestController
@RequestMapping("/api/faceSample/v1")
// 人脸样本管理
public class FaceSampleController {
    @Autowired
    private FaceSampleService FaceSampleService;

    // 分页查询人脸样本
    @PostMapping("/page")
    public ApiResponse<PageInfo<FaceSampleRespVO>> pageQuery(@RequestBody FaceSampleReqQuery FaceSampleReqQuery) {
        return FaceSampleService.pageQuery(FaceSampleReqQuery);
    }
    // 人脸样本列表查询
    @PostMapping("/list")
    public ApiResponse<List<FaceSampleRespVO>> list(@RequestBody FaceSampleReqQuery FaceSampleReqQuery) {
        return FaceSampleService.list(FaceSampleReqQuery);
    }
    // 人脸样本详情查询
    @GetMapping("/getDetail/{id}")
    public ApiResponse<FaceSampleRespVO> getDetail(@PathVariable("id") Long id) {
        return FaceSampleService.getById(id);
    }

}
