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;

/**
 * 身份证接口
 */
@DubboService
public class IdCardProvider implements IdCardServiceApi {

    @Autowired
    private IdCardService idCardService;

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