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;

/**
 * @Description: 新零售地址识别dubbo接口
 * @Author: jiang chao
 * @Time: 2024/12/26 16:57
 * @Classname: DeliveryServiceProvider
 * @PackageName: com.hzs.third.delivery.provider
 */
@DubboService
public class DeliveryServiceProvider implements IDeliveryServiceApi {

    @Autowired
    private IDeliveryService iDeliveryService;

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

}
