| | |
| | | package com.java110.order.smo; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.exception.SMOException; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 订单服务业务处理接口 |
| | | * |
| | | * 订单受理 |
| | | * Created by wuxw on 2017/4/11. |
| | | * 中心服务 SMO 业务逻辑接口 |
| | | * Created by wuxw on 2018/4/13. |
| | | */ |
| | | public interface IOrderServiceSMO { |
| | | |
| | | /** |
| | | * 订单调度, |
| | | * 根据订单类型 调用不同服务 处理 |
| | | * @param orderInfo |
| | | * 业务统一处理服务方法 |
| | | * @param reqJson 请求报文json |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public String orderDispatch(JSONObject orderInfo) throws Exception; |
| | | public ResponseEntity<String> service(String reqJson, Map<String, String> headers) throws SMOException; |
| | | |
| | | |
| | | /** |
| | | * 接受业务系统通知消息 |
| | | * @param receiveJson 接受报文 |
| | | * @throws SMOException |
| | | */ |
| | | public void receiveBusinessSystemNotifyMessage(String receiveJson) throws SMOException; |
| | | } |