package cn.pluss.platform.controller;


import cn.pluss.platform.IdCardService;
import cn.pluss.platform.api.Result;
import cn.pluss.platform.api.ResultGenerator;
import cn.pluss.platform.base.BaseModelController;
import cn.pluss.platform.entity.IdCard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 身份证信息表, 图片信息在tb_pluss_merchant_image表中 前端控制器
 * </p>
 *
 * @author Djh
 * @since 2020-10-16
 */
@RestController
@RequestMapping("/idcard")
public class IdcardController extends BaseModelController<IdCardService, IdCard> {

    @Autowired
    private IdCardService idCardService;

    @GetMapping("/faceCertInfo")
    public Result<IdCard> faceCertInfo() {
        IdCard idCard = idCardService.apiGetFaceCertInfo();
        return ResultGenerator.genSuccessResult(idCard);
    }
}
