package com.hzs.third.idcard.provider;

import com.hzs.common.core.domain.R;
import com.hzs.third.idcard.IdCardServiceApi;
import com.hzs.third.idcard.dto.IdCardOcrDTO;
import com.hzs.third.idcard.service.IdCardService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 身份证接口
 *
 * @Description:
 * @Author: ljc
 * @Time: 2023/11/23 18:02
 * @Classname: IdCardProvider
 * @Package_name: com.hzs.third.idcard.provider
 */

@DubboService
public class IdCardProvider implements IdCardServiceApi {

    @Autowired
    private IdCardService idCardService;

    @Override
    public R<IdCardOcrDTO> invokeIdCardOcr(String idCardUrl,int side) {
        return idCardService.invokeIdCardOcr(idCardUrl,side);
    }
}
