package cn.pluss.platform.controller.logist;

import cn.pluss.platform.logist.LogistCallbackHandler;
import cn.pluss.platform.yt.YtLogisticsEntity;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 圆通物流回调接口
 *
 * @author crystal
 * @date 2022/3/24 12:00
 */
@RestController
@RequestMapping(value = "/callback")
public class LogistCallbackController {

    @Resource
    private LogistCallbackHandler logistHandler;
    @RequestMapping(value = "/logist/yt")
    public String logistYt(@ModelAttribute YtLogisticsEntity entity){
        return logistHandler.execute(entity);
    }
}
