package com.hzs.third.delivery.provider;

import com.hzs.third.delivery.IDeliveryServiceApi;
import com.hzs.third.delivery.dto.DeliveryDTO;
import com.hzs.third.delivery.service.IDeliveryService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 新零售地址识别dubbo接口
 */
@DubboService
public class DeliveryServiceProvider implements IDeliveryServiceApi {

    @Autowired
    private IDeliveryService iDeliveryService;

    @Override
    public DeliveryDTO autoAddress(String address) {
        return iDeliveryService.handleDeliveryAddress(address);
    }

}
