...
|
...
|
@@ -18,22 +18,34 @@ code==200表示成功,其它都为失败 |
|
|
|
|
|
## MQ消息数据结构
|
|
|
|
|
|
|
|
|
### 取消订单
|
|
|
TOPIC:order.cancel
|
|
|
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.cancel |
|
|
|
|
|
|
```json
|
|
|
{"orderCode":100000,"status":900}
|
|
|
```
|
|
|
|
|
|
### 订单状态同步
|
|
|
TOPIC:order.erpstatus
|
|
|
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.erpstatus |
|
|
|
```json
|
|
|
{"orderCode":100000,"status":901}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 前台创建换货单
|
|
|
TOPIC:order.createChangeOrder
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.createChangeOrder |
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"id": 1,
|
...
|
...
|
@@ -70,42 +82,68 @@ TOPIC:order.createChangeOrder |
|
|
```
|
|
|
|
|
|
### ERP创建换货单
|
|
|
TOPIC:erp.createChangeOrder
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.createChangeOrder |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}
|
|
|
```
|
|
|
|
|
|
### 前台更新换货快递信息
|
|
|
TOPIC:order.updateChangeOrderExpressInfo
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.updateChangeOrderExpressInfo |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
```
|
|
|
|
|
|
### ERP更新换货单状态
|
|
|
TOPIC:erp.updateChangeOrderStatus
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.updateChangeOrderStatus |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 前台创建退货单
|
|
|
TOPIC:order.createRefundOrder
|
|
|
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.createRefundOrder |
|
|
|
|
|
|
### ERP创建退货单
|
|
|
TOPIC:erp.createRefundOrder
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.createRefundOrder |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}
|
|
|
```
|
|
|
|
|
|
### 前台更新退货快递信息
|
|
|
TOPIC:order.updateRefundOrderExpressInfo
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | order.updateRefundOrderExpressInfo |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
```
|
|
|
|
|
|
### ERP更新退货单状态
|
|
|
TOPIC:erp.updateRefundOrderStatus
|
|
|
| | |
|
|
|
| :-- | :-- |
|
|
|
| exchanges | amq.topic |
|
|
|
| route key | erp.updateRefundOrderStatus |
|
|
|
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
```
|
...
|
...
|
|